Class: Splicer::Records::PTRRecord

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

Returns a new instance of PTRRecord.

Parameters:

  • name (String)

    the relative name

  • host (String)

    the host name (fqdn)

  • ttl (Integer) (defaults to: 300)

    the TTL in seconds



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

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

Instance Attribute Details

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

Instance Method Details

#typeObject



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

def type
  'PTR'
end