Sha256: 52644bbcf1c5ccd60cfbccff2bbeaae4ed9f3e7b9bbe3e4e24065a71ee7898cd

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

class Matchd::Response::PTR < Matchd::Response
  def initialize(opts)
    super
    @host = opts.is_a?(Hash) ? opts.fetch("host") : opts
  end

  attr_reader :host

  def resource
    Resolv::DNS::Resource::IN::PTR.new(Resolv::DNS::Name.create(host))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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