class Resolv::DNS::Resource::MX
Mail Exchanger resource.
Attributes
The host of this MX.
The preference for this MX.
Public Class Methods
Source
# File lib/resolv.rb, line 2397 def initialize(preference, exchange) @preference = preference @exchange = exchange end
Creates a new MX record with preference, accepting mail at exchange.
Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.