Class: Cb::Models::Company::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/models/implementations/company.rb

Overview

CbAddress # CbCompany has a collection of these

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject

Returns the value of attribute city.



129
130
131
# File 'lib/cb/models/implementations/company.rb', line 129

def city
  @city
end

#countryObject

Returns the value of attribute country.



129
130
131
# File 'lib/cb/models/implementations/company.rb', line 129

def country
  @country
end

#stateObject

Returns the value of attribute state.



129
130
131
# File 'lib/cb/models/implementations/company.rb', line 129

def state
  @state
end

#streetObject

Returns the value of attribute street.



129
130
131
# File 'lib/cb/models/implementations/company.rb', line 129

def street
  @street
end

#zipObject

Returns the value of attribute zip.



129
130
131
# File 'lib/cb/models/implementations/company.rb', line 129

def zip
  @zip
end