Class: Resolv::DNS::Resource::DomainName
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::DomainName
- Defined in:
- lib/logstash/patches/resolv_9270.rb
Overview
Domain Name resource abstract class.
Constant Summary
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The name of this DomainName.
Attributes inherited from 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 Resolv::DNS::Resource
Constructor Details
#initialize(name) ⇒ DomainName
Creates a new DomainName from name
.
1806 1807 1808 |
# File 'lib/logstash/patches/resolv_9270.rb', line 1806 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
The name of this DomainName.
1813 1814 1815 |
# File 'lib/logstash/patches/resolv_9270.rb', line 1813 def name @name end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
1819 1820 1821 |
# File 'lib/logstash/patches/resolv_9270.rb', line 1819 def self.decode_rdata(msg) # :nodoc: return self.new(msg.get_name) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
1815 1816 1817 |
# File 'lib/logstash/patches/resolv_9270.rb', line 1815 def encode_rdata(msg) # :nodoc: msg.put_name(@name) end |