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.
Constant Summary
-
TypeValue =
Internal use only
# File 'lib/resolv.rb', line 202516
::Resolv::DNS::Resource - Inherited
Class Method Summary
- .new(first_string, *rest_strings) ⇒ TXT constructor
- .decode_rdata(msg) Internal use only
::Resolv::DNS::Resource - Inherited
::Resolv::DNS::Query - Inherited
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
-
#data
Returns the concatenated string from #strings.
- #encode_rdata(msg) Internal use only
::Resolv::DNS::Resource - Inherited
::Resolv::DNS::Query - Inherited
Constructor Details
.new(first_string, *rest_strings) ⇒ TXT
# File 'lib/resolv.rb', line 2027
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/resolv.rb', line 2034
attr_reader :strings
Instance Method Details
#data
Returns the concatenated string from #strings.
# File 'lib/resolv.rb', line 2039
def data @strings.join("") end
#encode_rdata(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 2043
def encode_rdata(msg) # :nodoc: msg.put_string_list(@strings) end