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