123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

::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.

[ GitHub ]

  
# 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.

[ GitHub ]

  
# File 'lib/resolv.rb', line 1960

attr_reader :exchange

#preference (readonly)

The preference for this MX.

[ GitHub ]

  
# File 'lib/resolv.rb', line 1955

attr_reader :preference