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.
2442 2443 2444 2445 |
# File 'lib/resolv.rb', line 2442 def initialize(cpu, os) @cpu = cpu @os = os end |
Instance Attribute Details
#cpu ⇒ Object (readonly)
CPU architecture for this resource.
2450 2451 2452 |
# File 'lib/resolv.rb', line 2450 def cpu @cpu end |
#os ⇒ Object (readonly)
Operating system for this resource.
2455 2456 2457 |
# File 'lib/resolv.rb', line 2455 def os @os end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
2462 2463 2464 2465 2466 |
# File 'lib/resolv.rb', line 2462 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:
2457 2458 2459 2460 |
# File 'lib/resolv.rb', line 2457 def encode_rdata(msg) # :nodoc: msg.put_string(@cpu) msg.put_string(@os) end |