Class: Splicer::Records::CNAMERecord

Inherits:
Record
  • Object
show all
Defined in:
lib/splicer/records/cname_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, cname, ttl = 300) ⇒ CNAMERecord

Returns a new instance of CNAMERecord.

Parameters:

  • name (String)

    the relative name

  • cname (String)

    the alias (fqdn)

  • ttl (Integer) (defaults to: 300)

    the TTL in seconds



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

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

Instance Attribute Details

#cnameObject

Returns the value of attribute cname.



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

def cname
  @cname
end

Instance Method Details

#typeObject



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

def type
  'CNAME'
end