lib/station.rb in ierail-0.3.5 vs lib/station.rb in ierail-0.4.0

- old
+ new

@@ -1,13 +1,13 @@ class Station attr_reader :description, :code, :id def initialize hash @description = hash['StationDesc'] - @latitude = hash['StationLatitude'] - @longitude = hash['StationLongitude'] + @latitude = hash['StationLatitude'].to_f + @longitude = hash['StationLongitude'].to_f @code = hash['StationCode'] - @id = hash['StationId'] + @id = hash['StationId'].to_i end def location [@longitude,@latitude] end