Class: Spree::PickupPointOption
- Inherits:
-
Object
- Object
- Spree::PickupPointOption
- Includes:
- ActiveModel::Attributes, ActiveModel::Model
- Defined in:
- app/models/spree/pickup_point_option.rb
Overview
Ephemeral value object returned by PickupPointProvider queries. Never
persisted — the selected option is frozen into
fulfillment.pickup_point_data as plain JSON.
Instance Method Summary collapse
-
#to_pickup_point_data ⇒ Hash
The JSON shape persisted into fulfillment.pickup_point_data.
Instance Method Details
#to_pickup_point_data ⇒ Hash
Returns the JSON shape persisted into fulfillment.pickup_point_data.
24 25 26 |
# File 'app/models/spree/pickup_point_option.rb', line 24 def to_pickup_point_data attributes.compact.stringify_keys end |