Class: CTM::Base::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/ctm/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(street, city, state, country, zip) ⇒ Location

Returns a new instance of Location.



5
6
7
8
9
10
11
# File 'lib/ctm/base.rb', line 5

def initialize(street, city, state, country, zip)
  @street = street
  @city = city
  @state = state
  @country = country
  @zip = zip
end

Instance Attribute Details

#cityObject (readonly)

Returns the value of attribute city.



4
5
6
# File 'lib/ctm/base.rb', line 4

def city
  @city
end

#countryObject (readonly)

Returns the value of attribute country.



4
5
6
# File 'lib/ctm/base.rb', line 4

def country
  @country
end

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'lib/ctm/base.rb', line 4

def state
  @state
end

#streetObject (readonly)

Returns the value of attribute street.



4
5
6
# File 'lib/ctm/base.rb', line 4

def street
  @street
end

#zipObject (readonly)

Returns the value of attribute zip.



4
5
6
# File 'lib/ctm/base.rb', line 4

def zip
  @zip
end