In Files

  • resolv.rb

Resolv::DNS::Resource::IN::A

Constants

TypeValue

Attributes

address[R]

Public Class Methods

decode_rdata(msg) click to toggle source
 
               # File resolv.rb, line 1653
def self.decode_rdata(msg)
  return self.new(IPv4.new(msg.get_bytes(4)))
end
            
new(address) click to toggle source
 
               # File resolv.rb, line 1644
def initialize(address)
  @address = IPv4.create(address)
end
            

Public Instance Methods

encode_rdata(msg) click to toggle source
 
               # File resolv.rb, line 1649
def encode_rdata(msg)
  msg.put_bytes(@address.address)
end