Class: Resolv::DNS::Resource::DomainName

Inherits:
Resolv::DNS::Resource show all
Defined in:
lib/logmerge/resolv.rb

Direct Known Subclasses

CNAME, NS, PTR

Constant Summary

Constants inherited from Resolv::DNS::Resource

ClassHash, ClassInsensitiveTypes, ClassValue

Instance Attribute Summary collapse

Attributes inherited from Resolv::DNS::Resource

#ttl

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resolv::DNS::Resource

#==, #eql?, get_class, #hash

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

#nameObject (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