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 1988

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 2001

attr_reader :exchange

#preference (readonly)

The preference for this MX.

[ GitHub ]

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

attr_reader :preference