Class: Resolv::DNS::Resource::DomainName
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::DomainName
- Defined in:
- lib/logmerge/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.
Attributes inherited from Resolv::DNS::Resource
Class Method Summary collapse
Instance Method Summary collapse
- #encode_rdata(msg) ⇒ Object
-
#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.
1440 1441 1442 |
# File 'lib/logmerge/resolv.rb', line 1440 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
1443 1444 1445 |
# File 'lib/logmerge/resolv.rb', line 1443 def name @name end |
Class Method Details
.decode_rdata(msg) ⇒ Object
1449 1450 1451 |
# File 'lib/logmerge/resolv.rb', line 1449 def self.decode_rdata(msg) return self.new(msg.get_name) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
1445 1446 1447 |
# File 'lib/logmerge/resolv.rb', line 1445 def encode_rdata(msg) msg.put_name(@name) end |