Class: Workarea::GlobalE::Api::UpdateOrderShippingInfo
- Inherits:
-
Object
- Object
- Workarea::GlobalE::Api::UpdateOrderShippingInfo
- Defined in:
- app/services/workarea/global_e/api/update_order_shipping_info.rb
Instance Attribute Summary collapse
-
#merchant_order ⇒ Object
readonly
Returns the value of attribute merchant_order.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Instance Method Summary collapse
-
#initialize(order, merchant_order) ⇒ UpdateOrderShippingInfo
constructor
A new instance of UpdateOrderShippingInfo.
- #response ⇒ Object
Constructor Details
#initialize(order, merchant_order) ⇒ UpdateOrderShippingInfo
Returns a new instance of UpdateOrderShippingInfo.
7 8 9 10 |
# File 'app/services/workarea/global_e/api/update_order_shipping_info.rb', line 7 def initialize(order, merchant_order) @order = order @merchant_order = merchant_order end |
Instance Attribute Details
#merchant_order ⇒ Object (readonly)
Returns the value of attribute merchant_order.
5 6 7 |
# File 'app/services/workarea/global_e/api/update_order_shipping_info.rb', line 5 def merchant_order @merchant_order end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
5 6 7 |
# File 'app/services/workarea/global_e/api/update_order_shipping_info.rb', line 5 def order @order end |
Instance Method Details
#response ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/services/workarea/global_e/api/update_order_shipping_info.rb', line 12 def response @response ||= begin ship_items Merchant::ResponseInfo.new(order: order) end end |