Sha256: 1d9291c8720ba580bc5208572326f27d883b1f25e6da30a14e13c97ad6fb2233
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module Ratis class Itinerary < Hashie::Trash property :legs, transform_with: (lambda do |legs| Array.wrap(legs[:leg]).map { |l| Hashie::Mash.new l } end) property :total_walk, from: :totalwalk property :final_walk, from: :finalwalk property :final_walk_dir, from: :finalwalkdir property :final_walk_hint, from: :finalwalkhint property :transit_time, from: :transittime, with: lambda { |v| v.to_i } property :regular_fare, from: :regularfare, with: lambda { |v| v.to_f } property :reduced_fare, from: :reducedfare, with: lambda { |v| v.to_f } property :fare_info, from: :fareinfo property :trace_info, from: :traceinfo property :status_info, from: :statusinfo property :exmodified property :exmodids property :dist_transit, from: :disttransit, with: lambda { |v| v.to_f } property :dist_auto, from: :distauto, with: lambda { |v| v.to_f } property :co2_transit, from: :co2transit, with: lambda { |v| v.to_f } property :co2_auto, from: :co2auto, with: lambda { |v| v.to_f } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ratis-3.6.6 | lib/ratis/itinerary.rb |
ratis-3.6.5 | lib/ratis/itinerary.rb |
ratis-3.6.4 | lib/ratis/itinerary.rb |