Skip to Content Skip to Search

Mail Exchanger resource.

Methods
N

Attributes

[R] exchange

The host of this MX.

[R] preference

The preference for this MX.

Class Public methods

new(preference, exchange)

Creates a new MX record with preference, accepting mail at exchange.

# File ruby/lib/resolv.rb, line 2389
def initialize(preference, exchange)
  @preference = preference
  @exchange = exchange
end