Class: RRs::IN::A
Constant Summary collapse
- TypeValue =
1
- ClassValue =
1
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
The IPv4 address for this A.
Attributes inherited from Resource
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#initialize(address) ⇒ A
constructor
Creates a new A for
address
.
Methods inherited from Resource
Constructor Details
Instance Attribute Details
#address ⇒ Object (readonly)
The IPv4 address for this A.
16 17 18 |
# File 'lib/rrs/in/a.rb', line 16 def address @address end |
Class Method Details
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/rrs/in/a.rb', line 18 def encode_rdata(msg) # :nodoc: msg.put_bytes(@address.address) end |