W3cubDocs

/Ruby 2.4

class Resolv::DNS::Resource::DomainName

Parent:
Resolv::DNS::Resource

Domain Name resource abstract class.

Attributes

name[R]

The name of this DomainName.

Public Class Methods

new(name) Show source

Creates a new DomainName from name.

# File lib/resolv.rb, line 1752
def initialize(name)
  @name = name
end

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.