Class: SpreeCmCommissioner::TripStop

Inherits:
Base
  • Object
show all
Defined in:
app/models/spree_cm_commissioner/trip_stop.rb

Instance Method Summary collapse

Instance Method Details

#create_vendor_stopObject



19
20
21
# File 'app/models/spree_cm_commissioner/trip_stop.rb', line 19

def create_vendor_stop
  vendor.vendor_stops.where(stop_id: stop_id, stop_type: stop_type).first_or_create
end

#set_stop_nameObject



15
16
17
# File 'app/models/spree_cm_commissioner/trip_stop.rb', line 15

def set_stop_name
  self.stop_name = stop.name
end