Class: Cb::CbCompany::CbAddress
- Inherits:
-
Object
- Object
- Cb::CbCompany::CbAddress
- Defined in:
- lib/cb/models/implementations/cb_company.rb
Overview
CbAddress # CbCompany has a collection of these
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street ⇒ Object
Returns the value of attribute street.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ CbAddress
constructor
A new instance of CbAddress.
Constructor Details
#initialize(args = {}) ⇒ CbAddress
120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/cb/models/implementations/cb_company.rb', line 120 def initialize(args = {}) begin @street = args['Street'] || '' @city = args['City'] || '' @state = args['State'] || '' @country = args['Country'] || '' @zip = args['ZIPCode'] || '' rescue # failed to load address end end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
118 119 120 |
# File 'lib/cb/models/implementations/cb_company.rb', line 118 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
118 119 120 |
# File 'lib/cb/models/implementations/cb_company.rb', line 118 def country @country end |
#state ⇒ Object
Returns the value of attribute state.
118 119 120 |
# File 'lib/cb/models/implementations/cb_company.rb', line 118 def state @state end |
#street ⇒ Object
Returns the value of attribute street.
118 119 120 |
# File 'lib/cb/models/implementations/cb_company.rb', line 118 def street @street end |
#zip ⇒ Object
Returns the value of attribute zip.
118 119 120 |
# File 'lib/cb/models/implementations/cb_company.rb', line 118 def zip @zip end |