Class: Location

Inherits:
Object
  • Object
show all
Defined in:
lib/model/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#latObject (readonly)

Returns the value of attribute lat.



3
4
5
# File 'lib/model/location.rb', line 3

def lat
  @lat
end

#longObject (readonly)

Returns the value of attribute long.



3
4
5
# File 'lib/model/location.rb', line 3

def long
  @long
end