Class: Resolv::DNS::Resource::HINFO
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::HINFO
- Defined in:
- lib/resolv.rb
Overview
Host Information resource.
Constant Summary collapse
- TypeValue =
:nodoc:
13
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#cpu ⇒ Object
readonly
CPU architecture for this resource.
-
#os ⇒ Object
readonly
Operating system for this resource.
Attributes inherited from Resolv::DNS::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
os
oncpu
.
Methods inherited from Resolv::DNS::Resource
Constructor Details
#initialize(cpu, os) ⇒ HINFO
Creates a new HINFO running os
on cpu
.
1914 1915 1916 1917 |
# File 'lib/resolv.rb', line 1914 def initialize(cpu, os) @cpu = cpu @os = os end |
Instance Attribute Details
#cpu ⇒ Object (readonly)
CPU architecture for this resource.
1922 1923 1924 |
# File 'lib/resolv.rb', line 1922 def cpu @cpu end |
#os ⇒ Object (readonly)
Operating system for this resource.
1927 1928 1929 |
# File 'lib/resolv.rb', line 1927 def os @os end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
1934 1935 1936 1937 1938 |
# File 'lib/resolv.rb', line 1934 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:
1929 1930 1931 1932 |
# File 'lib/resolv.rb', line 1929 def encode_rdata(msg) # :nodoc: msg.put_string(@cpu) msg.put_string(@os) end |