123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Gem::Resolv::DNS::Resource
Defined in: lib/rubygems/vendor/resolv/lib/resolv.rb

Overview

Domain Name resource abstract class.

Constant Summary

::Gem::Resolv::DNS::Resource - Inherited

ClassHash, ClassInsensitiveTypes, ClassValue

Class Method Summary

::Gem::Resolv::DNS::Resource - Inherited

::Gem::Resolv::DNS::Query - Inherited

Instance Attribute Summary

  • #name readonly

    The name of this DomainName.

::Gem::Resolv::DNS::Resource - Inherited

#ttl

Remaining Time To Live for this ::Gem::Resolv::DNS::Resource.

Instance Method Summary

Constructor Details

.new(name) ⇒ DomainName

Creates a new DomainName from #name.

[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2183

def initialize(name)
  @name = name
end

Class Method Details

.decode_rdata(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2196

def self.decode_rdata(msg) # :nodoc:
  return self.new(msg.get_name)
end

Instance Attribute Details

#name (readonly)

The name of this DomainName.

[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2190

attr_reader :name

Instance Method Details

#encode_rdata(msg)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2192

def encode_rdata(msg) # :nodoc:
  msg.put_name(@name)
end