Class: RedZone::MailExchange
- Inherits:
-
Object
- Object
- RedZone::MailExchange
- Defined in:
- lib/redzone/mail_exchange.rb
Overview
A mail server record
Instance Attribute Summary collapse
-
#machine ⇒ Object
readonly
Get the target machine hosting the mail exchange.
-
#name ⇒ Object
readonly
MX Server name / alias.
-
#priority ⇒ Object
readonly
MX Priority.
Instance Method Summary collapse
-
#initialize(name, machine, priority) ⇒ MailExchange
constructor
Constructs a new MailExchange entry.
-
#records ⇒ Array<Record>
Get the list of MX records.
Constructor Details
#initialize(name, machine, priority) ⇒ MailExchange
Constructs a new MailExchange entry
17 18 19 20 21 |
# File 'lib/redzone/mail_exchange.rb', line 17 def initialize(name,machine,priority) @name = name @machine = machine.alias(@name) @priority = priority end |
Instance Attribute Details
#machine ⇒ Object (readonly)
Get the target machine hosting the mail exchange
8 9 10 |
# File 'lib/redzone/mail_exchange.rb', line 8 def machine @machine end |
#name ⇒ Object (readonly)
MX Server name / alias
5 6 7 |
# File 'lib/redzone/mail_exchange.rb', line 5 def name @name end |
#priority ⇒ Object (readonly)
MX Priority
11 12 13 |
# File 'lib/redzone/mail_exchange.rb', line 11 def priority @priority end |