Class: EmailHunter::Exist
- Inherits:
-
Object
- Object
- EmailHunter::Exist
- Defined in:
- lib/email_hunter/exist.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#exist ⇒ Object
readonly
Returns the value of attribute exist.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #hunt ⇒ Object
-
#initialize(email, key) ⇒ Exist
constructor
A new instance of Exist.
Constructor Details
#initialize(email, key) ⇒ Exist
Returns a new instance of Exist.
10 11 12 13 |
# File 'lib/email_hunter/exist.rb', line 10 def initialize(email, key) @email = email @key = key end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/email_hunter/exist.rb', line 8 def email @email end |
#exist ⇒ Object (readonly)
Returns the value of attribute exist.
8 9 10 |
# File 'lib/email_hunter/exist.rb', line 8 def exist @exist end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
8 9 10 |
# File 'lib/email_hunter/exist.rb', line 8 def sources @sources end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/email_hunter/exist.rb', line 8 def status @status end |
Instance Method Details
#hunt ⇒ Object
15 16 17 18 |
# File 'lib/email_hunter/exist.rb', line 15 def hunt response = apiresponse Struct.new(*response.keys).new(*response.values) unless response.empty? end |