Sha256: 13c1c1d5d3801498cf3adddc52111c2b76ee6d4405e54692b0227c0f5910c50f
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
require "time" class Matchd::Response::SOA < Matchd::Response def initialize(opts) super @mname = opts.fetch("mname") @rname = opts.fetch("rname") @serial = opts.fetch("serial") @refresh_time = opts.fetch("refresh") @retry_time = opts.fetch("retry") @expire_time = opts.fetch("expire") @minimum_ttl = opts.fetch("minimum_ttl") end attr_reader :mname, :rname, :serial, :refresh_time, :retry_time, :expire_time, :minimum_ttl def resource Resolv::DNS::Resource::IN::SOA.new( Resolv::DNS::Name.create(mname), Resolv::DNS::Name.create(rname), serial, refresh_time, retry_time, expire_time, minimum_ttl ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matchd-0.1.0 | lib/matchd/response/soa.rb |