Class: CTM::Base::Location
- Inherits:
-
Object
- Object
- CTM::Base::Location
- Defined in:
- lib/ctm/base.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#street ⇒ Object
readonly
Returns the value of attribute street.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(street, city, state, country, zip) ⇒ Location
constructor
A new instance of Location.
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
#city ⇒ Object (readonly)
Returns the value of attribute city.
4 5 6 |
# File 'lib/ctm/base.rb', line 4 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
4 5 6 |
# File 'lib/ctm/base.rb', line 4 def country @country end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
4 5 6 |
# File 'lib/ctm/base.rb', line 4 def state @state end |
#street ⇒ Object (readonly)
Returns the value of attribute street.
4 5 6 |
# File 'lib/ctm/base.rb', line 4 def street @street end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
4 5 6 |
# File 'lib/ctm/base.rb', line 4 def zip @zip end |