Class: Splicer::Records::MXRecord
- Defined in:
- lib/splicer/records/mx_record.rb
Instance Attribute Summary collapse
-
#exchanger ⇒ Object
Returns the value of attribute exchanger.
-
#priority ⇒ Object
Returns the value of attribute priority.
Attributes inherited from Record
Instance Method Summary collapse
-
#initialize(name, exchanger, priority = 0, ttl = 300) ⇒ MXRecord
constructor
A new instance of MXRecord.
- #type ⇒ Object
Methods inherited from Record
Constructor Details
#initialize(name, exchanger, priority = 0, ttl = 300) ⇒ MXRecord
Returns a new instance of MXRecord.
11 12 13 14 15 |
# File 'lib/splicer/records/mx_record.rb', line 11 def initialize(name, exchanger, priority=0, ttl=300) super(name, ttl) @exchanger = exchanger @priority = priority end |
Instance Attribute Details
#exchanger ⇒ Object
Returns the value of attribute exchanger.
5 6 7 |
# File 'lib/splicer/records/mx_record.rb', line 5 def exchanger @exchanger end |
#priority ⇒ Object
Returns the value of attribute priority.
5 6 7 |
# File 'lib/splicer/records/mx_record.rb', line 5 def priority @priority end |
Instance Method Details
#type ⇒ Object
17 18 19 |
# File 'lib/splicer/records/mx_record.rb', line 17 def type 'MX' end |