Class: Cb::CbCompany::CbAddress

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

Overview

CbAddress # CbCompany has a collection of these

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject

Returns the value of attribute city.



118
119
120
# File 'lib/cb/models/implementations/cb_company.rb', line 118

def city
  @city
end

#countryObject

Returns the value of attribute country.



118
119
120
# File 'lib/cb/models/implementations/cb_company.rb', line 118

def country
  @country
end

#stateObject

Returns the value of attribute state.



118
119
120
# File 'lib/cb/models/implementations/cb_company.rb', line 118

def state
  @state
end

#streetObject

Returns the value of attribute street.



118
119
120
# File 'lib/cb/models/implementations/cb_company.rb', line 118

def street
  @street
end

#zipObject

Returns the value of attribute zip.



118
119
120
# File 'lib/cb/models/implementations/cb_company.rb', line 118

def zip
  @zip
end