Class: Workarea::Zipco::Order
- Inherits:
-
Object
- Object
- Workarea::Zipco::Order
- Defined in:
- app/services/workarea/zipco/order.rb
Defined Under Namespace
Modules: ProductImageUrl, ProductUrl
Instance Attribute Summary collapse
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Instance Method Summary collapse
-
#initialize(order) ⇒ Order
constructor
A new instance of Order.
- #to_h ⇒ Object
Constructor Details
#initialize(order) ⇒ Order
Returns a new instance of Order.
25 26 27 |
# File 'app/services/workarea/zipco/order.rb', line 25 def initialize(order) @order = Workarea::Storefront::OrderViewModel.new(order) end |
Instance Attribute Details
#order ⇒ Object (readonly)
Returns the value of attribute order.
22 23 24 |
# File 'app/services/workarea/zipco/order.rb', line 22 def order @order end |
Instance Method Details
#to_h ⇒ Object
29 30 31 32 33 34 35 |
# File 'app/services/workarea/zipco/order.rb', line 29 def to_h { shopper: zipco_shopper, order: zipco_order, config: zipco_config } end |