Class: Locations::Location
- Inherits:
-
Object
- Object
- Locations::Location
- Defined in:
- lib/oeffi/locations.rb
Constant Summary collapse
- STATION =
0- ADDRESS =
1- POI =
2- ANY =
3
Instance Method Summary collapse
-
#initialize(javaStation) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(javaStation) ⇒ Location
Returns a new instance of Location.
10 11 12 13 14 15 16 |
# File 'lib/oeffi/locations.rb', line 10 def initialize(javaStation) @type = javaStation.type.to_s @id = javaStation.id @name = javaStation.name @lat = javaStation.lat.to_f / 1000000 @lng = javaStation.lon.to_f / 1000000 end |