Class: Resolv::DNS::Resource::DomainName
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::DomainName
- Defined in:
- lib/net/dns/resolv.rb
Constant Summary
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#initialize(name) ⇒ DomainName
constructor
A new instance of DomainName.
Methods inherited from Resolv::DNS::Resource
Constructor Details
#initialize(name) ⇒ DomainName
Returns a new instance of DomainName.
1530 1531 1532 |
# File 'lib/net/dns/resolv.rb', line 1530 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
1533 1534 1535 |
# File 'lib/net/dns/resolv.rb', line 1533 def name @name end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
1539 1540 1541 |
# File 'lib/net/dns/resolv.rb', line 1539 def self.decode_rdata(msg) # :nodoc: return self.new(msg.get_name) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
1535 1536 1537 |
# File 'lib/net/dns/resolv.rb', line 1535 def encode_rdata(msg) # :nodoc: msg.put_name(@name) end |