Class: Location
- Inherits:
-
Object
- Object
- Location
- Defined in:
- lib/model/location.rb
Instance Attribute Summary collapse
-
#lat ⇒ Object
readonly
Returns the value of attribute lat.
-
#long ⇒ Object
readonly
Returns the value of attribute long.
Instance Method Summary collapse
-
#initialize(lat, long) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(lat, long) ⇒ Location
Returns a new instance of Location.
5 6 7 8 |
# File 'lib/model/location.rb', line 5 def initialize(lat, long) @lat = lat @long = long end |
Instance Attribute Details
#lat ⇒ Object (readonly)
Returns the value of attribute lat.
3 4 5 |
# File 'lib/model/location.rb', line 3 def lat @lat end |
#long ⇒ Object (readonly)
Returns the value of attribute long.
3 4 5 |
# File 'lib/model/location.rb', line 3 def long @long end |