Class: DJB::TinyDNS::SOA
Overview
fqdn, mname, rname, ser, ref, ret, exp, min, ttl, timestamp
Constant Summary collapse
- Sigil =
'Z'
- TypeValue =
6
Instance Attribute Summary collapse
-
#mname ⇒ Object
readonly
Returns the value of attribute mname.
-
#rname ⇒ Object
readonly
Returns the value of attribute rname.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(args) ⇒ SOA
constructor
A new instance of SOA.
Methods inherited from Resource
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
#mname ⇒ Object (readonly)
Returns the value of attribute mname.
214 215 216 |
# File 'lib/djb/tinydns.rb', line 214 def mname @mname end |
#rname ⇒ Object (readonly)
Returns the value of attribute rname.
214 215 216 |
# File 'lib/djb/tinydns.rb', line 214 def rname @rname end |