Class: Hunter::DomainSearch
- Inherits:
-
Object
- Object
- Hunter::DomainSearch
- Defined in:
- lib/hunter/domain_search.rb
Instance Method Summary collapse
-
#initialize(domain, key) ⇒ DomainSearch
constructor
A new instance of DomainSearch.
- #perform(options) ⇒ Object
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() response = call_api() Struct.new(*response.keys).new(*response.values) end |