Sha256: 159687daf63b743dcbd24ce40ca48c476c5956bf81bf2ca9fdbcc3d5c60dabd4
Contents?: true
Size: 284 Bytes
Versions: 1
Compression:
Stored size: 284 Bytes
Contents
class Matchd::Response::CNAME < Matchd::Response def initialize(opts) super @alias_name = opts.is_a?(Hash) ? opts.fetch("alias") : opts end attr_reader :alias_name def resource Resolv::DNS::Resource::IN::CNAME.new(Resolv::DNS::Name.create(alias_name)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matchd-0.1.0 | lib/matchd/response/cname.rb |