Class: TowerdataEmail::Postal
- Inherits:
-
Object
- Object
- TowerdataEmail::Postal
- Includes:
- ConnectionData
- Defined in:
- lib/towerdata_email.rb
Constant Summary
Constants included from ConnectionData
ConnectionData::UNSUPPORTED_ATTR
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#city ⇒ Object
Returns the value of attribute city.
-
#fname ⇒ Object
Returns the value of attribute fname.
-
#lname ⇒ Object
Returns the value of attribute lname.
-
#state ⇒ Object
Returns the value of attribute state.
-
#zip ⇒ Object
Returns the value of attribute zip.
Attributes included from ConnectionData
#ok, #status_code, #status_desc
Instance Method Summary collapse
-
#initialize(postal_data) ⇒ Postal
constructor
Create a new TowerdataEmail::Postal.
Methods included from ConnectionData
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
#address1 ⇒ Object
Returns the value of attribute address1.
120 121 122 |
# File 'lib/towerdata_email.rb', line 120 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
120 121 122 |
# File 'lib/towerdata_email.rb', line 120 def address2 @address2 end |
#city ⇒ Object
Returns the value of attribute city.
120 121 122 |
# File 'lib/towerdata_email.rb', line 120 def city @city end |
#fname ⇒ Object
Returns the value of attribute fname.
120 121 122 |
# File 'lib/towerdata_email.rb', line 120 def fname @fname end |
#lname ⇒ Object
Returns the value of attribute lname.
120 121 122 |
# File 'lib/towerdata_email.rb', line 120 def lname @lname end |
#state ⇒ Object
Returns the value of attribute state.
120 121 122 |
# File 'lib/towerdata_email.rb', line 120 def state @state end |
#zip ⇒ Object
Returns the value of attribute zip.
120 121 122 |
# File 'lib/towerdata_email.rb', line 120 def zip @zip end |