Class: DJB::TinyDNS::A
Overview
fqdn, ip, ttl, timestamp
Constant Summary collapse
- Sigil =
'+'
- TypeValue =
1
Instance Attribute Summary collapse
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(args) ⇒ A
constructor
A new instance of A.
Methods inherited from Resource
Constructor Details
#initialize(args) ⇒ A
Returns a new instance of A.
151 152 153 154 155 156 157 158 159 |
# File 'lib/djb/tinydns.rb', line 151 def initialize(args) super(args) @ip = @args['ip'] @fields << @fqdn @fields << @ip @fields << @ttl @fields << @timestamp end |
Instance Attribute Details
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
149 150 151 |
# File 'lib/djb/tinydns.rb', line 149 def ip @ip end |