Class: Cb::Models::Company::Address
- Inherits:
-
Object
- Object
- Cb::Models::Company::Address
- Defined in:
- lib/cb/models/implementations/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 = {}) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(args = {}) ⇒ Address
Returns a new instance of Address.
131 132 133 134 135 136 137 138 |
# File 'lib/cb/models/implementations/company.rb', line 131 def initialize(args = {}) @street = args['Street'] || '' @city = args['City'] || '' @state = args['State'] || '' @country = args['Country'] || '' @zip = args['ZIPCode'] || '' rescue end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
129 130 131 |
# File 'lib/cb/models/implementations/company.rb', line 129 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
129 130 131 |
# File 'lib/cb/models/implementations/company.rb', line 129 def country @country end |
#state ⇒ Object
Returns the value of attribute state.
129 130 131 |
# File 'lib/cb/models/implementations/company.rb', line 129 def state @state end |
#street ⇒ Object
Returns the value of attribute street.
129 130 131 |
# File 'lib/cb/models/implementations/company.rb', line 129 def street @street end |
#zip ⇒ Object
Returns the value of attribute zip.
129 130 131 |
# File 'lib/cb/models/implementations/company.rb', line 129 def zip @zip end |