Class: DJB::TinyDNS::Generic
Overview
fqdn, data, ttl, timestamp
Constant Summary collapse
- Sigil =
':'
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(args) ⇒ Generic
constructor
A new instance of Generic.
Methods inherited from Resource
Constructor Details
#initialize(args) ⇒ Generic
Returns a new instance of Generic.
130 131 132 133 134 135 136 137 138 139 |
# File 'lib/djb/tinydns.rb', line 130 def initialize(args) super(args) @data = @args['data'] @fields << @fqdn @fields << (args.has_key?('TypeValue') ? args['TypeValue'] : self.class::TypeValue) @fields << encode @fields << @ttl @fields << @timestamp end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
128 129 130 |
# File 'lib/djb/tinydns.rb', line 128 def data @data end |