Class: Resolv::DNS::Resource::IN::WKS
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::IN::WKS
- Defined in:
- lib/logmerge/resolv.rb
Constant Summary
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#bitmap ⇒ Object
readonly
Returns the value of attribute bitmap.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Attributes inherited from Resolv::DNS::Resource
Class Method Summary collapse
Instance Method Summary collapse
- #encode_rdata(msg) ⇒ Object
-
#initialize(address, protocol, bitmap) ⇒ WKS
constructor
A new instance of WKS.
Methods inherited from Resolv::DNS::Resource
Constructor Details
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
1628 1629 1630 |
# File 'lib/logmerge/resolv.rb', line 1628 def address @address end |
#bitmap ⇒ Object (readonly)
Returns the value of attribute bitmap.
1628 1629 1630 |
# File 'lib/logmerge/resolv.rb', line 1628 def bitmap @bitmap end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
1628 1629 1630 |
# File 'lib/logmerge/resolv.rb', line 1628 def protocol @protocol end |
Class Method Details
Instance Method Details
#encode_rdata(msg) ⇒ Object
1630 1631 1632 1633 1634 |
# File 'lib/logmerge/resolv.rb', line 1630 def encode_rdata(msg) msg.put_bytes(@address.address) msg.put_pack("n", @protocol) msg.put_bytes(@bitmap) end |