Class: DJB::TinyDNS::A

Inherits:
Resource show all
Defined in:
lib/djb/tinydns.rb

Overview

fqdn, ip, ttl, timestamp

Constant Summary collapse

Sigil =
'+'
TypeValue =
1

Instance Attribute Summary collapse

Attributes inherited from Resource

#fqdn, #timestamp, #ttl

Instance Method Summary collapse

Methods inherited from Resource

#encode, #to_s

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

#ipObject (readonly)

Returns the value of attribute ip.



149
150
151
# File 'lib/djb/tinydns.rb', line 149

def ip
  @ip
end