Class: DJB::TinyDNS::PTR
Overview
fqdn, p, ttl, timestamp
Constant Summary collapse
- Sigil =
'^'
- TypeValue =
12
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(args) ⇒ PTR
constructor
A new instance of PTR.
Methods inherited from Resource
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
#host ⇒ Object (readonly)
Returns the value of attribute host.
248 249 250 |
# File 'lib/djb/tinydns.rb', line 248 def host @host end |