Sha256: 3bb098ee89cf41057d2285a6694b91d56929c61972e98402b15d5984277494ae

Contents?: true

Size: 537 Bytes

Versions: 29

Compression:

Stored size: 537 Bytes

Contents

require 'quick_travel/adapter'
require 'quick_travel/products/base'

module QuickTravel
  module Products
    class ScheduledTrip < Base
      belongs_to :to_route_stop, class_name: 'RouteStop'
      belongs_to :from_route_stop, class_name: 'RouteStop'

      @reservation_for_type = :scheduled_trips



      def from_route_stop_id
        return nil if from_route_stop.nil?

        from_route_stop.id
      end

      def to_route_stop_id
        return nil if to_route_stop.nil?

        to_route_stop.id
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
quicktravel_client-4.7.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.6.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.5.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.4.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.3.2 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.3.1 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.3.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.2.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.1.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-4.0.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.9.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.8.1 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.8.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.7.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.6.1 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.6.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.5.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.4.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.3.0 lib/quick_travel/products/scheduled_trip.rb
quicktravel_client-3.2.0 lib/quick_travel/products/scheduled_trip.rb