Class: DJB::TinyDNS::NS::Base
Direct Known Subclasses
Constant Summary collapse
- TypeValue =
2
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
Methods inherited from Resource
Constructor Details
#initialize(args) ⇒ Base
Returns a new instance of Base.
168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/djb/tinydns.rb', line 168 def initialize(args) super(args) @ip = @args['ip'] @host = @args['host'] @fields << @fqdn @fields << @ip @fields << @host @fields << @ttl @fields << @timestamp end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
166 167 168 |
# File 'lib/djb/tinydns.rb', line 166 def host @host end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
166 167 168 |
# File 'lib/djb/tinydns.rb', line 166 def ip @ip end |