Class: Net::DNS::RR::AAAA

Inherits:
Net::DNS::RR show all
Defined in:
lib/net/dns/rr/aaaa.rb

Overview

IPv6 Address Record (AAAA)

Class for DNS IPv6 Address (AAAA) resource records.

Constant Summary

Constants inherited from Net::DNS::RR

RRFIXEDSZ, RR_REGEXP

Constants included from Names

Names::INT16SZ

Instance Attribute Summary collapse

Attributes inherited from Net::DNS::RR

#name, #rdata, #ttl

Instance Method Summary collapse

Methods inherited from Net::DNS::RR

#cls, #comp_data, #data, #initialize, #inspect, parse, parse_packet, #to_a, #to_s, #type

Methods included from Names

#dn_comp, #dn_expand, #names_array, #pack_name, #valid?

Constructor Details

This class inherits a constructor from Net::DNS::RR

Instance Attribute Details

#addressObject

Gets the current IPv6 address for this record.

Returns an instance of IPAddr.



13
14
15
# File 'lib/net/dns/rr/aaaa.rb', line 13

def address
  @address
end

Instance Method Details

#valueObject

Gets the standardized value for this record, represented by the value of address.

Returns a String.



34
35
36
# File 'lib/net/dns/rr/aaaa.rb', line 34

def value
  address.to_s
end