Class: DNS::Zone::RR::A
Overview
‘A` resource record.
RFC 1035
Direct Known Subclasses
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
Attributes inherited from Record
Instance Method Summary collapse
Methods inherited from Record
#general_prefix, #initialize, #load_general_and_get_rdata, #type
Constructor Details
This class inherits a constructor from DNS::Zone::RR::Record
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/dns/zone/rr/a.rb', line 6 def address @address end |
Instance Method Details
#dump ⇒ Object
8 9 10 11 12 |
# File 'lib/dns/zone/rr/a.rb', line 8 def dump parts = general_prefix parts << address parts.join(' ') end |
#load(string, options = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/dns/zone/rr/a.rb', line 14 def load(string, = {}) rdata = load_general_and_get_rdata(string, ) return nil unless rdata @address = rdata self end |