class Matchd::Response::SRV
Attributes
port[R]
priority[R]
target[R]
weight[R]
Public Class Methods
new(opts)
click to toggle source
Calls superclass method
Matchd::Response::new
# File lib/matchd/response/srv.rb, line 2 def initialize(opts) super @target = opts.fetch("target") @priority = opts.fetch("priority") @weight = opts.fetch("weight") @port = opts.fetch("port") end
Public Instance Methods
resource()
click to toggle source
# File lib/matchd/response/srv.rb, line 12 def resource Resolv::DNS::Resource::IN::SRV.new( priority, weight, port, target ) end