Sha256: e5d817f318d2a6c9ce854816a12cf67a3e791f2dabc890a9a7a3ba3b364aba39

Contents?: true

Size: 374 Bytes

Versions: 13

Compression:

Stored size: 374 Bytes

Contents

require 'quick_travel/init_from_hash'

module QuickTravel
  class RouteStop
    include QuickTravel::InitFromHash

    def stop
      Stop.new({
        id: stop_id,
        name: name,
        code: code,
        address: address,
        longitude: longitude,
        latitude: latitude
      })
    end
  end

  class Stop
    include QuickTravel::InitFromHash
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
quicktravel_client-4.7.0 lib/quick_travel/route_stop.rb
quicktravel_client-4.6.0 lib/quick_travel/route_stop.rb
quicktravel_client-4.5.0 lib/quick_travel/route_stop.rb
quicktravel_client-4.4.0 lib/quick_travel/route_stop.rb
quicktravel_client-4.3.2 lib/quick_travel/route_stop.rb
quicktravel_client-4.3.1 lib/quick_travel/route_stop.rb
quicktravel_client-4.3.0 lib/quick_travel/route_stop.rb
quicktravel_client-4.2.0 lib/quick_travel/route_stop.rb
quicktravel_client-4.1.0 lib/quick_travel/route_stop.rb
quicktravel_client-4.0.0 lib/quick_travel/route_stop.rb
quicktravel_client-3.9.0 lib/quick_travel/route_stop.rb
quicktravel_client-3.8.1 lib/quick_travel/route_stop.rb
quicktravel_client-3.8.0 lib/quick_travel/route_stop.rb