Class: Splicer::Records::SPFRecord

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

Returns a new instance of SPFRecord.

Parameters:

  • name (String)

    the relative name

  • text (String)

    the text

  • ttl (Integer) (defaults to: 300)

    the TTL in seconds



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

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

Instance Attribute Details

#textObject

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#typeObject



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

def type
  'SPF'
end