Class: Hunter::EmailCount

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

Instance Method Summary collapse

Constructor Details

#initialize(domain) ⇒ EmailCount

Returns a new instance of EmailCount.



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

def initialize(domain)
  @domain = domain
end

Instance Method Details

#performObject



13
14
15
16
# File 'lib/hunter/email_count.rb', line 13

def perform
  response = call_api
  Struct.new(*response.keys).new(*response.values) unless response.empty?
end