Class: QuickTravel::Products::ScheduledTrip

Inherits:
Base
  • Object
show all
Defined in:
lib/quick_travel/products/scheduled_trip.rb

Instance Method Summary collapse

Methods inherited from Base

find, find_for_type, #normally_bookable?

Methods inherited from Adapter

all, belongs_to, create, find, has_many, #to_s, update

Methods included from InitFromHash

#define_readers, #initialize, #to_hash

Instance Method Details

#from_route_stop_idObject



14
15
16
17
18
# File 'lib/quick_travel/products/scheduled_trip.rb', line 14

def from_route_stop_id
  return nil if from_route_stop.nil?

  from_route_stop.id
end

#to_route_stop_idObject



20
21
22
23
24
# File 'lib/quick_travel/products/scheduled_trip.rb', line 20

def to_route_stop_id
  return nil if to_route_stop.nil?

  to_route_stop.id
end