method

new

ruby latest stable - Class: Resolv::DNS::Resource::MX
new(preference, exchange)
public

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