class Matchd::Response::TXT

Attributes

txt[R]

Public Class Methods

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

Public Instance Methods

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