Class: TowerdataEmail::Demographics
- Inherits:
-
Object
- Object
- TowerdataEmail::Demographics
- Includes:
- ConnectionData
- Defined in:
- lib/towerdata_email.rb
Constant Summary
Constants included from ConnectionData
ConnectionData::UNSUPPORTED_ATTR
Instance Attribute Summary collapse
-
#age ⇒ Object
Returns the value of attribute age.
-
#children ⇒ Object
Returns the value of attribute children.
-
#gender ⇒ Object
Returns the value of attribute gender.
-
#home_owner_status ⇒ Object
Returns the value of attribute home_owner_status.
-
#household_income ⇒ Object
Returns the value of attribute household_income.
-
#marital_status ⇒ Object
Returns the value of attribute marital_status.
-
#occupation ⇒ Object
Returns the value of attribute occupation.
-
#velocity ⇒ Object
Returns the value of attribute velocity.
Attributes included from ConnectionData
#ok, #status_code, #status_desc
Instance Method Summary collapse
-
#initialize(demographics_data) ⇒ Demographics
constructor
Create a new TowerdataEmail::Postal.
Methods included from ConnectionData
Constructor Details
#initialize(demographics_data) ⇒ Demographics
Create a new TowerdataEmail::Postal
Arguments:
fields: ('postal' field of HTTParty::Response)
110 111 112 |
# File 'lib/towerdata_email.rb', line 110 def initialize(demographics_data) set_attributes demographics_data end |
Instance Attribute Details
#age ⇒ Object
Returns the value of attribute age.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def age @age end |
#children ⇒ Object
Returns the value of attribute children.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def children @children end |
#gender ⇒ Object
Returns the value of attribute gender.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def gender @gender end |
#home_owner_status ⇒ Object
Returns the value of attribute home_owner_status.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def home_owner_status @home_owner_status end |
#household_income ⇒ Object
Returns the value of attribute household_income.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def household_income @household_income end |
#marital_status ⇒ Object
Returns the value of attribute marital_status.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def marital_status @marital_status end |
#occupation ⇒ Object
Returns the value of attribute occupation.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def occupation @occupation end |
#velocity ⇒ Object
Returns the value of attribute velocity.
104 105 106 |
# File 'lib/towerdata_email.rb', line 104 def velocity @velocity end |