Class: TowerdataEmail::Response
- Inherits:
-
Object
- Object
- TowerdataEmail::Response
- Defined in:
- lib/towerdata_email.rb
Overview
A wrapper to the response from an email search request
Instance Attribute Summary collapse
-
#demographics ⇒ Object
Returns the value of attribute demographics.
-
#email ⇒ Object
Returns the value of attribute email.
-
#postal ⇒ Object
Returns the value of attribute postal.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
93 94 95 96 97 |
# File 'lib/towerdata_email.rb', line 93 def initialize(response) @email = Email.new(response['email']) @postal = Postal.new(response['found_postal']) @demographics = Demographics.new(response['demographics']) end |
Instance Attribute Details
#demographics ⇒ Object
Returns the value of attribute demographics.
91 92 93 |
# File 'lib/towerdata_email.rb', line 91 def demographics @demographics end |
#email ⇒ Object
Returns the value of attribute email.
91 92 93 |
# File 'lib/towerdata_email.rb', line 91 def email @email end |
#postal ⇒ Object
Returns the value of attribute postal.
91 92 93 |
# File 'lib/towerdata_email.rb', line 91 def postal @postal end |