Class: Hunter::EmailCount
- Inherits:
-
Object
- Object
- Hunter::EmailCount
- Defined in:
- lib/hunter/email_count.rb
Instance Method Summary collapse
-
#initialize(domain) ⇒ EmailCount
constructor
A new instance of EmailCount.
- #perform ⇒ Object
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
#perform ⇒ Object
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 |