Class: Hunter::DomainSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/hunter/domain_search.rb

Instance Method Summary collapse

Constructor Details

#initialize(domain, key) ⇒ DomainSearch

Returns a new instance of DomainSearch.



9
10
11
12
# File 'lib/hunter/domain_search.rb', line 9

def initialize(domain, key)
  @domain = domain
  @key = key
end

Instance Method Details

#perform(options) ⇒ Object



14
15
16
17
# File 'lib/hunter/domain_search.rb', line 14

def perform(options)
  response = call_api(options)
  Struct.new(*response.keys).new(*response.values)
end