Class: DJB::TinyDNS::PTR

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

Overview

fqdn, p, ttl, timestamp

Constant Summary collapse

Sigil =
'^'
TypeValue =
12

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) ⇒ PTR

Returns a new instance of PTR.



250
251
252
253
254
255
256
257
258
259
# File 'lib/djb/tinydns.rb', line 250

def initialize(args)
    super(args)

    @host = @args['host']

    @fields << @fqdn
    @fields << @host
    @fields << @ttl
    @fields << @timestamp
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



248
249
250
# File 'lib/djb/tinydns.rb', line 248

def host
  @host
end