Class: Resolv::DNS::Resource::MX
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Resolv::DNS::Resource
|
Defined in: | lib/resolv.rb |
Overview
Mail Exchanger resource.
Class Method Summary
-
.new(preference, exchange) ⇒ MX
constructor
Creates a new
MX
record with #preference, accepting mail at #exchange.
Instance Attribute Summary
-
#exchange
readonly
The host of this
MX
. -
#preference
readonly
The preference for this
MX
.
::Resolv::DNS::Resource - Inherited
#ttl | Remaining Time To Live for this ::Resolv::DNS::Resource. |
Constructor Details
.new(preference, exchange) ⇒ MX
Creates a new MX
record with #preference, accepting mail at #exchange.
# File 'lib/resolv.rb', line 1947
def initialize(preference, exchange) @preference = preference @exchange = exchange end
Instance Attribute Details
#exchange (readonly)
The host of this MX
.
# File 'lib/resolv.rb', line 1960
attr_reader :exchange
#preference (readonly)
The preference for this MX
.
# File 'lib/resolv.rb', line 1955
attr_reader :preference