Resolv::DNS::Resource::HINFO (Class)

In: resolv.rb
Parent: Resource

Methods

Constants

TypeValue = 13

Attributes

cpu  [R] 
os  [R] 

Public Class methods

[Source]

# File resolv.rb, line 1449
        def self.decode_rdata(msg)
          cpu = msg.get_string
          os = msg.get_string
          return self.new(cpu, os)
        end

[Source]

# File resolv.rb, line 1438
        def initialize(cpu, os)
          @cpu = cpu
          @os = os
        end

Public Instance methods

[Source]

# File resolv.rb, line 1444
        def encode_rdata(msg)
          msg.put_string(@cpu)
          msg.put_string(@os)
        end

[Validate]