Sha256: a00b7e234ecb4ba1d2bf03a4c64401e3f0ba7f8538fc8d2e35a381df1215e500

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

class Matchd::Response::SRV < Matchd::Response
  def initialize(opts)
    super
    @target = opts.fetch("target")
    @priority = opts.fetch("priority")
    @weight = opts.fetch("weight")
    @port = opts.fetch("port")
  end

  attr_reader :target, :priority, :weight, :port

  def resource
    Resolv::DNS::Resource::IN::SRV.new(
      priority,
      weight,
      port,
      target
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
matchd-0.1.0 lib/matchd/response/srv.rb