class Dnsruby::Prefix

Constants

Regex

Attributes

address[R]
address_lenght[R]
af[R]
negative[R]
prefix_length[R]

Public Class Methods

new(af, prefix_length, negative, address_length, address) click to toggle source
# File lib/dnsruby/resource/APL.rb, line 34
def initialize(af, prefix_length, negative, address_length, address)
  @af = af
  @prefix_length = prefix_length
  @negative = negative
  @address_length = address_length
  @address = address
  @flag = address_length
  @flag |= 0x80 if @negative
end

Public Instance Methods

to_s() click to toggle source
# File lib/dnsruby/resource/APL.rb, line 44
def to_s
  "#{@negative}#{@af}:#{@address}/#{@prefix_length}"
end