Class: Resolv::DNS::Resource
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Classes:
| |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Query
|
|
Instance Chain:
self,
Query
|
|
Inherits: |
Resolv::DNS::Query
|
Defined in: | lib/resolv.rb |
Overview
A DNS resource abstract class.
Constant Summary
-
ClassHash =
Internal use only
# File 'lib/resolv.rb', line 1709{}
-
ClassInsensitiveTypes =
Internal use only
# File 'lib/resolv.rb', line 2151[ # :nodoc: NS, CNAME, SOA, PTR, HINFO, MINFO, MX, TXT, LOC, ANY ]
-
ClassValue =
Internal use only
Standard (class generic) RRs
nil
Class Method Summary
- .decode_rdata(msg) Internal use only
- .get_class(type_value, class_value) Internal use only
Query - Inherited
Instance Attribute Summary
-
#ttl
readonly
Remaining Time To Live for this
Resource
.
Instance Method Summary
- #==(other) Internal use only
- #encode_rdata(msg) Internal use only
- #eql?(other) ⇒ Boolean Internal use only
- #hash Internal use only
Query - Inherited
Class Method Details
.decode_rdata(msg)
This method is for internal use only.
# File 'lib/resolv.rb', line 1715
def self.decode_rdata(msg) # :nodoc: raise NotImplementedError.new end
.get_class(type_value, class_value)
This method is for internal use only.
[ GitHub ]
Instance Attribute Details
#ttl (readonly)
Remaining Time To Live for this Resource
.
# File 'lib/resolv.rb', line 1707
attr_reader :ttl
Instance Method Details
#==(other)
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 1719
def ==(other) # :nodoc: return false unless self.class == other.class s_ivars = self.instance_variables s_ivars.sort! s_ivars.delete :@ttl o_ivars = other.instance_variables o_ivars.sort! o_ivars.delete :@ttl return s_ivars == o_ivars && s_ivars.collect {|name| self.instance_variable_get name} == o_ivars.collect {|name| other.instance_variable_get name} end
#encode_rdata(msg)
This method is for internal use only.
# File 'lib/resolv.rb', line 1711
def encode_rdata(msg) # :nodoc: raise NotImplementedError.new end
#eql?(other) ⇒ Boolean
This method is for internal use only.
# File 'lib/resolv.rb', line 1732
def eql?(other) # :nodoc: return self == other end
#hash
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 1736
def hash # :nodoc: h = 0 vars = self.instance_variables vars.delete :@ttl vars.each {|name| h ^= self.instance_variable_get(name).hash } return h end