Class: Dnsruby::RR::IN::WKS
- Inherits:
-
Dnsruby::RR
- Object
- Dnsruby::RR
- Dnsruby::RR::IN::WKS
- Defined in:
- lib/dnsruby/resource/IN.rb
Overview
RFC 1035, Section 3.4.2 (deprecated)
Constant Summary
Constants inherited from Dnsruby::RR
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 Dnsruby::RR
#klass, #name, #rdata, #ttl, #type
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc: all.
Instance Method Summary collapse
-
#encode_rdata(msg, canonical = false) ⇒ Object
:nodoc: all.
-
#initialize(address, protocol, bitmap) ⇒ WKS
constructor
A new instance of WKS.
Methods inherited from Dnsruby::RR
#<=>, #==, #clone, create, #eql?, find_class, #from_data, #from_hash, #from_string, get_class, get_num, #hash, implemented_rrs, #init_defaults, new_from_data, new_from_hash, new_from_string, #rdata_to_string, #rdlength, #sameRRset, #to_s
Constructor Details
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
86 87 88 |
# File 'lib/dnsruby/resource/IN.rb', line 86 def address @address end |
#bitmap ⇒ Object (readonly)
Returns the value of attribute bitmap.
86 87 88 |
# File 'lib/dnsruby/resource/IN.rb', line 86 def bitmap @bitmap end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
86 87 88 |
# File 'lib/dnsruby/resource/IN.rb', line 86 def protocol @protocol end |
Class Method Details
Instance Method Details
#encode_rdata(msg, canonical = false) ⇒ Object
:nodoc: all
88 89 90 91 92 |
# File 'lib/dnsruby/resource/IN.rb', line 88 def encode_rdata(msg, canonical=false) #:nodoc: all msg.put_bytes(@address.address) msg.put_pack("n", @protocol) msg.put_bytes(@bitmap) end |