123456789_123456789_123456789_123456789_123456789_

Class: Resolv::DNS::Resource::IN::AAAA

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Resolv::DNS::Resource
Defined in: lib/resolv.rb

Overview

An IPv6 address record.

Constant Summary

::Resolv::DNS::Resource - Inherited

ClassHash, ClassInsensitiveTypes, ClassValue

Class Method Summary

::Resolv::DNS::Resource - Inherited

::Resolv::DNS::Query - Inherited

Instance Attribute Summary

::Resolv::DNS::Resource - Inherited

#ttl

Remaining Time To Live for this ::Resolv::DNS::Resource.

Instance Method Summary

Constructor Details

.new(address) ⇒ AAAA

Creates a new AAAA for #address.

[ GitHub ]

  
# File 'lib/resolv.rb', line 2246

def initialize(address)
  @address = IPv6.create(address)
end

Class Method Details

.decode_rdata(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/resolv.rb', line 2259

def self.decode_rdata(msg) # :nodoc:
  return self.new(IPv6.new(msg.get_bytes(16)))
end

Instance Attribute Details

#address (readonly)

The ::Resolv::IPv6 address for this AAAA.

[ GitHub ]

  
# File 'lib/resolv.rb', line 2253

attr_reader :address

Instance Method Details

#encode_rdata(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/resolv.rb', line 2255

def encode_rdata(msg) # :nodoc:
  msg.put_bytes(@address.address)
end