Class: Resolv::DNS::Resource::HINFO
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::HINFO
- Defined in:
- lib/logmerge/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.
Attributes inherited from Resolv::DNS::Resource
Class Method Summary collapse
Instance Method Summary collapse
- #encode_rdata(msg) ⇒ Object
-
#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.
1501 1502 1503 1504 |
# File 'lib/logmerge/resolv.rb', line 1501 def initialize(cpu, os) @cpu = cpu @os = os end |
Instance Attribute Details
#cpu ⇒ Object (readonly)
Returns the value of attribute cpu.
1505 1506 1507 |
# File 'lib/logmerge/resolv.rb', line 1505 def cpu @cpu end |
#os ⇒ Object (readonly)
Returns the value of attribute os.
1505 1506 1507 |
# File 'lib/logmerge/resolv.rb', line 1505 def os @os end |
Class Method Details
.decode_rdata(msg) ⇒ Object
1512 1513 1514 1515 1516 |
# File 'lib/logmerge/resolv.rb', line 1512 def self.decode_rdata(msg) cpu = msg.get_string os = msg.get_string return self.new(cpu, os) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
1507 1508 1509 1510 |
# File 'lib/logmerge/resolv.rb', line 1507 def encode_rdata(msg) msg.put_string(@cpu) msg.put_string(@os) end |