Class: DJB::TinyDNS::SOA

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

Overview

fqdn, mname, rname, ser, ref, ret, exp, min, ttl, timestamp

Constant Summary collapse

Sigil =
'Z'
TypeValue =
6

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

Returns a new instance of SOA.



216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/djb/tinydns.rb', line 216

def initialize(args)
    super(args)
    
    @mname = @args['mname']
    @rname = @args['rname']

    @fields << @fqdn
    @fields << @mname
    @fields << @rname
    @fields << @args['serial']
    @fields << @args['refresh']
    @fields << @args['retry']
    @fields << @args['expire']
    @fields << @args['minimum']
    @fields << @ttl
    @fields << @timestamp
end

Instance Attribute Details

#mnameObject (readonly)

Returns the value of attribute mname.



214
215
216
# File 'lib/djb/tinydns.rb', line 214

def mname
  @mname
end

#rnameObject (readonly)

Returns the value of attribute rname.



214
215
216
# File 'lib/djb/tinydns.rb', line 214

def rname
  @rname
end