Class: Resolv::DNS::Resource::HINFO
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::HINFO
- Defined in:
- lib/net/dns/resolv.rb
Constant Summary collapse
- TypeValue =
13
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#cpu ⇒ Object
readonly
Returns the value of attribute cpu.
-
#os ⇒ Object
readonly
Returns the value of attribute os.
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#initialize(cpu, os) ⇒ HINFO
constructor
A new instance of HINFO.
Methods inherited from Resolv::DNS::Resource
Constructor Details
#initialize(cpu, os) ⇒ HINFO
Returns a new instance of HINFO.
1591 1592 1593 1594 |
# File 'lib/net/dns/resolv.rb', line 1591 def initialize(cpu, os) @cpu = cpu @os = os end |
Instance Attribute Details
#cpu ⇒ Object (readonly)
Returns the value of attribute cpu.
1595 1596 1597 |
# File 'lib/net/dns/resolv.rb', line 1595 def cpu @cpu end |
#os ⇒ Object (readonly)
Returns the value of attribute os.
1595 1596 1597 |
# File 'lib/net/dns/resolv.rb', line 1595 def os @os end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
1602 1603 1604 1605 1606 |
# File 'lib/net/dns/resolv.rb', line 1602 def self.decode_rdata(msg) # :nodoc: cpu = msg.get_string os = msg.get_string return self.new(cpu, os) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
1597 1598 1599 1600 |
# File 'lib/net/dns/resolv.rb', line 1597 def encode_rdata(msg) # :nodoc: msg.put_string(@cpu) msg.put_string(@os) end |