Module: SpreeCmCommissioner::LineItemTransitable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/spree_cm_commissioner/line_item_transitable.rb
Defined Under Namespace
Classes: TripKey
Constant Summary collapse
- DIRECTION =
%w[outbound inbound].freeze
Instance Method Summary collapse
- #boarding_trip_stop_id ⇒ Object
- #boarding_trip_stop_id=(value) ⇒ Object
- #direction ⇒ Object
- #direction=(value) ⇒ Object
- #drop_off_lat ⇒ Object
- #drop_off_lat=(value) ⇒ Object
- #drop_off_lng ⇒ Object
- #drop_off_lng=(value) ⇒ Object
- #drop_off_oob_confirmed ⇒ Object
- #drop_off_oob_confirmed=(value) ⇒ Object
- #drop_off_place_name ⇒ Object
- #drop_off_place_name=(value) ⇒ Object
- #drop_off_trip_stop_id ⇒ Object
- #drop_off_trip_stop_id=(value) ⇒ Object
- #inbound? ⇒ Boolean
- #outbound? ⇒ Boolean
- #passenger_count ⇒ Object
- #passenger_count=(value) ⇒ Object
- #pickup_lat ⇒ Object
- #pickup_lat=(value) ⇒ Object
- #pickup_lng ⇒ Object
- #pickup_lng=(value) ⇒ Object
- #pickup_oob_confirmed ⇒ Object
- #pickup_oob_confirmed=(value) ⇒ Object
- #pickup_place_name ⇒ Object
- #pickup_place_name=(value) ⇒ Object
- #trip_id ⇒ Object
- #trip_id=(value) ⇒ Object
Instance Method Details
#boarding_trip_stop_id ⇒ Object
61 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 61 def boarding_trip_stop_id = ['boarding_trip_stop_id']&.to_i |
#boarding_trip_stop_id=(value) ⇒ Object
82 83 84 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 82 def boarding_trip_stop_id=(value) ('boarding_trip_stop_id', value) end |
#direction ⇒ Object
59 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 59 def direction = ['direction'] |
#direction=(value) ⇒ Object
74 75 76 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 74 def direction=(value) ('direction', value) end |
#drop_off_lat ⇒ Object
68 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 68 def drop_off_lat = ['drop_off_lat']&.to_f |
#drop_off_lat=(value) ⇒ Object
114 115 116 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 114 def drop_off_lat=(value) ('drop_off_lat', value) end |
#drop_off_lng ⇒ Object
69 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 69 def drop_off_lng = ['drop_off_lng']&.to_f |
#drop_off_lng=(value) ⇒ Object
118 119 120 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 118 def drop_off_lng=(value) ('drop_off_lng', value) end |
#drop_off_oob_confirmed ⇒ Object
72 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 72 def drop_off_oob_confirmed = ['drop_off_oob_confirmed'] |
#drop_off_oob_confirmed=(value) ⇒ Object
94 95 96 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 94 def drop_off_oob_confirmed=(value) ('drop_off_oob_confirmed', value) end |
#drop_off_place_name ⇒ Object
65 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 65 def drop_off_place_name = ['drop_off_place_name'] |
#drop_off_place_name=(value) ⇒ Object
102 103 104 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 102 def drop_off_place_name=(value) ('drop_off_place_name', value) end |
#drop_off_trip_stop_id ⇒ Object
62 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 62 def drop_off_trip_stop_id = ['drop_off_trip_stop_id']&.to_i |
#drop_off_trip_stop_id=(value) ⇒ Object
86 87 88 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 86 def drop_off_trip_stop_id=(value) ('drop_off_trip_stop_id', value) end |
#inbound? ⇒ Boolean
57 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 57 def inbound? = direction == 'inbound' |
#outbound? ⇒ Boolean
56 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 56 def outbound? = direction == 'outbound' |
#passenger_count ⇒ Object
70 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 70 def passenger_count = ['passenger_count']&.to_i |
#passenger_count=(value) ⇒ Object
122 123 124 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 122 def passenger_count=(value) ('passenger_count', value) end |
#pickup_lat ⇒ Object
66 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 66 def pickup_lat = ['pickup_lat']&.to_f |
#pickup_lat=(value) ⇒ Object
106 107 108 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 106 def pickup_lat=(value) ('pickup_lat', value) end |
#pickup_lng ⇒ Object
67 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 67 def pickup_lng = ['pickup_lng']&.to_f |
#pickup_lng=(value) ⇒ Object
110 111 112 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 110 def pickup_lng=(value) ('pickup_lng', value) end |
#pickup_oob_confirmed ⇒ Object
71 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 71 def pickup_oob_confirmed = ['pickup_oob_confirmed'] |
#pickup_oob_confirmed=(value) ⇒ Object
90 91 92 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 90 def pickup_oob_confirmed=(value) ('pickup_oob_confirmed', value) end |
#pickup_place_name ⇒ Object
64 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 64 def pickup_place_name = ['pickup_place_name'] |
#pickup_place_name=(value) ⇒ Object
98 99 100 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 98 def pickup_place_name=(value) ('pickup_place_name', value) end |
#trip_id ⇒ Object
60 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 60 def trip_id = ['trip_id']&.to_i |
#trip_id=(value) ⇒ Object
78 79 80 |
# File 'app/models/concerns/spree_cm_commissioner/line_item_transitable.rb', line 78 def trip_id=(value) ('trip_id', value) end |