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
- .new(first_string, *rest_strings) ⇒ TXT constructor
Instance Attribute Summary
- 
    
      #strings  
    
    readonly
    Returns an Array of Strings for this TXTrecord.
::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 
  
# File 'lib/resolv.rb', line 1981
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.
# File 'lib/resolv.rb', line 1988
attr_reader :strings
Instance Method Details
#data
Returns the concatenated string from #strings.
# File 'lib/resolv.rb', line 1993
def data @strings.join("") end