Class: DJB::TinyDNS::TXT

Inherits:
Resource show all
Defined in:
lib/djb/tinydns.rb

Overview

fqdn, s, ttl, timestamp

Constant Summary collapse

Sigil =
'\''
TypeValue =
16

Instance Attribute Summary collapse

Attributes inherited from Resource

#fqdn, #timestamp, #ttl

Instance Method Summary collapse

Methods inherited from Resource

#encode, #to_s

Constructor Details

#initialize(args) ⇒ TXT

Returns a new instance of TXT.



300
301
302
303
304
305
306
307
308
309
# File 'lib/djb/tinydns.rb', line 300

def initialize(args)
    super(args)

    @data = @args['data']

    @fields << @fqdn
    @fields << encode
    @fields << @ttl
    @fields << @timestamp
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



298
299
300
# File 'lib/djb/tinydns.rb', line 298

def data
  @data
end