Class: Gem::Resolv::DNS::Resource::TXT
| Relationships & Source Files | |
| 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
Unstructured text resource.
Constant Summary
- 
    TypeValue =
    Internal use only
    
 # File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 242916
::Gem::Resolv::DNS::Resource - Inherited
  
Class Method Summary
- .new(first_string, *rest_strings) ⇒ TXT constructor
- .decode_rdata(msg) Internal use only
::Gem::Resolv::DNS::Resource - Inherited
::Gem::Resolv::DNS::Query - Inherited
Instance Attribute Summary
- 
    
      #strings  
    
    readonly
    Returns an Array of Strings for this TXTrecord.
::Gem::Resolv::DNS::Resource - Inherited
| #ttl | Remaining Time To Live for this  | 
Instance Method Summary
- 
    
      #data  
    
    Returns the concatenated string from #strings. 
- #encode_rdata(msg) Internal use only
::Gem::Resolv::DNS::Resource - Inherited
::Gem::Resolv::DNS::Query - Inherited
Constructor Details
    .new(first_string, *rest_strings)  ⇒ TXT 
  
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2431
def initialize(first_string, *rest_strings) @strings = [first_string, *rest_strings] end
Class Method Details
.decode_rdata(msg)
    This method is for internal use only.
  
  [ GitHub ]
Instance Attribute Details
#strings (readonly)
Returns an Array of Strings for this TXT record.
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2438
attr_reader :strings
Instance Method Details
#data
Returns the concatenated string from #strings.
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2443
def data @strings.join("") end
#encode_rdata(msg)
    This method is for internal use only.
  
  [ GitHub ]
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2447
def encode_rdata(msg) # :nodoc: msg.put_string_list(@strings) end