Class: TowerdataEmail::Postal

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(postal_data) ⇒ Postal

Create a new TowerdataEmail::Postal

Arguments:

fields: ('postal' field of HTTParty::Response)


126
127
128
# File 'lib/towerdata_email.rb', line 126

def initialize(postal_data)
  set_attributes postal_data
end

Instance Attribute Details

#address1Object

Returns the value of attribute address1.



120
121
122
# File 'lib/towerdata_email.rb', line 120

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



120
121
122
# File 'lib/towerdata_email.rb', line 120

def address2
  @address2
end

#cityObject

Returns the value of attribute city.



120
121
122
# File 'lib/towerdata_email.rb', line 120

def city
  @city
end

#fnameObject

Returns the value of attribute fname.



120
121
122
# File 'lib/towerdata_email.rb', line 120

def fname
  @fname
end

#lnameObject

Returns the value of attribute lname.



120
121
122
# File 'lib/towerdata_email.rb', line 120

def lname
  @lname
end

#stateObject

Returns the value of attribute state.



120
121
122
# File 'lib/towerdata_email.rb', line 120

def state
  @state
end

#zipObject

Returns the value of attribute zip.



120
121
122
# File 'lib/towerdata_email.rb', line 120

def zip
  @zip
end