Class: Resolv::DNS::Resource::HINFO
- Inherits:
-
Resource
- Object
- Resource
- Resolv::DNS::Resource::HINFO
- Defined in:
- lib/resolv.rb
Overview
Host Information resource.
Constant Summary collapse
- TypeValue =
:nodoc:
13
Instance Attribute Summary collapse
-
#cpu ⇒ Object
readonly
CPU architecture for this resource.
-
#os ⇒ Object
readonly
Operating system for this resource.
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#initialize(cpu, os) ⇒ HINFO
constructor
Creates a new HINFO running
osoncpu.
Constructor Details
#initialize(cpu, os) ⇒ HINFO
Creates a new HINFO running os on cpu.
2539 2540 2541 2542 |
# File 'lib/resolv.rb', line 2539 def initialize(cpu, os) @cpu = cpu @os = os end |
Instance Attribute Details
#cpu ⇒ Object (readonly)
CPU architecture for this resource.
2547 2548 2549 |
# File 'lib/resolv.rb', line 2547 def cpu @cpu end |
#os ⇒ Object (readonly)
Operating system for this resource.
2552 2553 2554 |
# File 'lib/resolv.rb', line 2552 def os @os end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
2559 2560 2561 2562 2563 |
# File 'lib/resolv.rb', line 2559 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:
2554 2555 2556 2557 |
# File 'lib/resolv.rb', line 2554 def encode_rdata(msg) # :nodoc: msg.put_string(@cpu) msg.put_string(@os) end |