123456789_123456789_123456789_123456789_123456789_

Class: Resolv::DNS::Resource::TXT

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

Overview

Unstructured text resource.

Class Method Summary

Instance Attribute Summary

  • #strings readonly

    Returns an Array of Strings for this TXT record.

::Resolv::DNS::Resource - Inherited

#ttl

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

Instance Method Summary

Constructor Details

.new(first_string, *rest_strings) ⇒ TXT

[ GitHub ]

  
# File 'lib/resolv.rb', line 2028

def initialize(first_string, *rest_strings)
  @strings = [first_string, *rest_strings]
end

Instance Attribute Details

#strings (readonly)

Returns an Array of Strings for this TXT record.

[ GitHub ]

  
# File 'lib/resolv.rb', line 2035

attr_reader :strings

Instance Method Details

#data

Returns the concatenated string from #strings.

[ GitHub ]

  
# File 'lib/resolv.rb', line 2040

def data
  @strings.join("")
end