Class: Gem::Resolv::DNS::Resource::DomainName
- Inherits:
-
Gem::Resolv::DNS::Resource
- Object
- Query
- Gem::Resolv::DNS::Resource
- Gem::Resolv::DNS::Resource::DomainName
- Defined in:
- lib/rubygems/vendor/resolv/lib/resolv.rb
Overview
Domain Name resource abstract class.
Constant Summary
Constants inherited from Gem::Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The name of this DomainName.
Attributes inherited from Gem::Resolv::DNS::Resource
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#initialize(name) ⇒ DomainName
constructor
Creates a new DomainName from
name
.
Methods inherited from Gem::Resolv::DNS::Resource
Constructor Details
#initialize(name) ⇒ DomainName
Creates a new DomainName from name
.
2198 2199 2200 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2198 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
The name of this DomainName.
2205 2206 2207 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2205 def name @name end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
2211 2212 2213 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2211 def self.decode_rdata(msg) # :nodoc: return self.new(msg.get_name) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
2207 2208 2209 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2207 def encode_rdata(msg) # :nodoc: msg.put_name(@name) end |