Class: Resolv::DNS::Resource::DomainName
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Resolv::DNS::Resource
|
Defined in: | lib/resolv.rb |
Overview
Domain Name resource abstract class.
Constant Summary
::Resolv::DNS::Resource
- Inherited
Class Method Summary
-
.new(name) ⇒ DomainName
constructor
Creates a new
DomainName
from #name. - .decode_rdata(msg) Internal use only
::Resolv::DNS::Resource
- Inherited
::Resolv::DNS::Query
- Inherited
Instance Attribute Summary
-
#name
readonly
The name of this
DomainName
.
::Resolv::DNS::Resource
- Inherited
#ttl | Remaining Time To Live for this |
Instance Method Summary
- #encode_rdata(msg) Internal use only
::Resolv::DNS::Resource
- Inherited
::Resolv::DNS::Query
- Inherited
Constructor Details
.new(name) ⇒ DomainName
Creates a new DomainName
from #name.
Class Method Details
.decode_rdata(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 1800
def self.decode_rdata(msg) # :nodoc: return self.new(msg.get_name) end
Instance Attribute Details
#name (readonly)
The name of this DomainName
.
# File 'lib/resolv.rb', line 1794
attr_reader :name
Instance Method Details
#encode_rdata(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 1796
def encode_rdata(msg) # :nodoc: msg.put_name(@name) end