class Net::DNS::RR::NULL

Attributes

null[R]

Private Instance Methods

build_pack() click to toggle source
# File lib/net/dns/rr/null.rb, line 12
def build_pack
  @null_pack = @null
  @rdlength = @null_pack.size
end
get_data() click to toggle source
# File lib/net/dns/rr/null.rb, line 17
def get_data
  @null_pack
end
get_inspect() click to toggle source
# File lib/net/dns/rr/null.rb, line 21
def get_inspect
  @null.to_s
end
set_type() click to toggle source
# File lib/net/dns/rr/null.rb, line 44
def set_type
  @type = Net::DNS::RR::Types.new("NULL")
end
subclass_new_from_binary(data, offset) click to toggle source
# File lib/net/dns/rr/null.rb, line 37
def subclass_new_from_binary(data, offset)
  @null = data[offset..offset + @rdlength]
  offset + @rdlength
end
subclass_new_from_hash(args) click to toggle source
# File lib/net/dns/rr/null.rb, line 25
def subclass_new_from_hash(args)
  if args.key? :null
    @null = args[:null]
  else
    raise ArgumentError, ":null field is mandatory but missing"
  end
end
subclass_new_from_string(str) click to toggle source
# File lib/net/dns/rr/null.rb, line 33
def subclass_new_from_string(str)
  @null = str.strip
end