# Resolv::DNS::Resource::TXT (Class)

In: | resolv.rb
Parent: | Resource

## Methods

decode_rdata encode_rdata new

## Constants

TypeValue | = | 16

## Attributes

data | [R] |

## Public Class methods

new(data)

[Source]

    # File resolv.rb, line 1444
            def initialize(data)
              @data = data
            end

decode_rdata(msg)

[Source]

    # File resolv.rb, line 1453
            def self.decode_rdata(msg)
              data = msg.get_string
              return self.new(data)
            end

## Public Instance methods

encode_rdata(msg)

[Source]

    # File resolv.rb, line 1449
            def encode_rdata(msg)
              msg.put_string(@data)
            end

[Validate]