class Dnsruby::RR::IN::APL
Class for DNS
Address (A
) resource records.
RFC 1035 Section
3.4.1
Attributes
prefixes[RW]
The RR's (Resolv::IPv4) address field
Public Instance Methods
from_hash(hash)
click to toggle source
Create the RR
from a hash
# File lib/dnsruby/resource/APL.rb, line 123 def from_hash(hash) @prefixes = Prefixes.create(hash[:prefixes]) end
from_string(input)
click to toggle source
Create the RR
from a standard string
# File lib/dnsruby/resource/APL.rb, line 128 def from_string(input) @prefixes = Prefixes.create(input) end
rdata_to_string()
click to toggle source
# File lib/dnsruby/resource/APL.rb, line 132 def rdata_to_string @prefixes.to_s end