Class: TowerdataEmail::Demographics

Inherits:
Object
  • Object
show all
Includes:
ConnectionData
Defined in:
lib/towerdata_email.rb

Constant Summary

Constants included from ConnectionData

ConnectionData::UNSUPPORTED_ATTR

Instance Attribute Summary collapse

Attributes included from ConnectionData

#ok, #status_code, #status_desc

Instance Method Summary collapse

Methods included from ConnectionData

#incorrect?, #time_out?

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

#ageObject

Returns the value of attribute age.



104
105
106
# File 'lib/towerdata_email.rb', line 104

def age
  @age
end

#childrenObject

Returns the value of attribute children.



104
105
106
# File 'lib/towerdata_email.rb', line 104

def children
  @children
end

#genderObject

Returns the value of attribute gender.



104
105
106
# File 'lib/towerdata_email.rb', line 104

def gender
  @gender
end

#home_owner_statusObject

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_incomeObject

Returns the value of attribute household_income.



104
105
106
# File 'lib/towerdata_email.rb', line 104

def household_income
  @household_income
end

#marital_statusObject

Returns the value of attribute marital_status.



104
105
106
# File 'lib/towerdata_email.rb', line 104

def marital_status
  @marital_status
end

#occupationObject

Returns the value of attribute occupation.



104
105
106
# File 'lib/towerdata_email.rb', line 104

def occupation
  @occupation
end

#velocityObject

Returns the value of attribute velocity.



104
105
106
# File 'lib/towerdata_email.rb', line 104

def velocity
  @velocity
end