Class: Splicer::Records::AAAARecord

Inherits:
Record
  • Object
show all
Defined in:
lib/splicer/records/aaaa_record.rb

Instance Attribute Summary collapse

Attributes inherited from Record

#name, #ttl

Instance Method Summary collapse

Methods inherited from Record

#name?

Constructor Details

#initialize(name, ip, ttl = 300) ⇒ AAAARecord

Returns a new instance of AAAARecord.

Parameters:

  • name (String)

    the relative name

  • ip (String)

    the IPv6 address

  • ttl (Integer) (defaults to: 300)

    the TTL in seconds



10
11
12
13
# File 'lib/splicer/records/aaaa_record.rb', line 10

def initialize(name, ip, ttl=300)
  super(name, ttl)
  @ip = ip
end

Instance Attribute Details

#ipObject

Returns the value of attribute ip.



5
6
7
# File 'lib/splicer/records/aaaa_record.rb', line 5

def ip
  @ip
end

Instance Method Details

#typeObject



15
16
17
# File 'lib/splicer/records/aaaa_record.rb', line 15

def type
  'AAAA'
end