class Matchd::Response::A

Attributes

ip[R]

Public Class Methods

new(opts) click to toggle source
Calls superclass method Matchd::Response::new
# File lib/matchd/response/a.rb, line 2
def initialize(opts)
  super
  @ip = opts.is_a?(Hash) ? opts.fetch("ip") : opts
end

Public Instance Methods

resource() click to toggle source
# File lib/matchd/response/a.rb, line 9
def resource
  Resolv::DNS::Resource::IN::A.new(ip)
end