class Matchd::Response::SOA
Attributes
expire_time[R]
minimum_ttl[R]
mname[R]
refresh_time[R]
retry_time[R]
rname[R]
serial[R]
Public Class Methods
new(opts)
click to toggle source
Calls superclass method
Matchd::Response::new
# File lib/matchd/response/soa.rb, line 4 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
Public Instance Methods
resource()
click to toggle source
# File lib/matchd/response/soa.rb, line 17 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