Sha256: ae080c5f7cd97770f46bb9283364fc9ac3a2cfe0f8cc1b4212db9e1304b4dfb9
Contents?: true
Size: 259 Bytes
Versions: 1
Compression:
Stored size: 259 Bytes
Contents
class Matchd::Response::NS < 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::NS.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/ns.rb |