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 13 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 18 def get_data @null_pack end
get_inspect()
click to toggle source
# File lib/net/dns/rr/null.rb, line 22 def get_inspect "#@null" end
set_type()
click to toggle source
# File lib/net/dns/rr/null.rb, line 45 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 38 def subclass_new_from_binary(data,offset) @null = data[offset..offset+@rdlength] return offset + @rdlength end
subclass_new_from_hash(args)
click to toggle source
# File lib/net/dns/rr/null.rb, line 26 def subclass_new_from_hash(args) if args.has_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 34 def subclass_new_from_string(str) @null = str.strip end