Class: ChannelAdvisor::OrderStatus
- Inherits:
-
Object
- Object
- ChannelAdvisor::OrderStatus
- Defined in:
- lib/channeladvisor/order_status.rb
Instance Attribute Summary collapse
-
#checkout ⇒ Object
Returns the value of attribute checkout.
-
#payment ⇒ Object
Returns the value of attribute payment.
-
#refund ⇒ Object
Returns the value of attribute refund.
-
#shipping ⇒ Object
Returns the value of attribute shipping.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ OrderStatus
constructor
A new instance of OrderStatus.
Constructor Details
#initialize(attrs = {}) ⇒ OrderStatus
Returns a new instance of OrderStatus.
5 6 7 8 9 10 11 12 |
# File 'lib/channeladvisor/order_status.rb', line 5 def initialize(attrs={}) unless attrs.nil? @checkout = [attrs[:checkout_status], attrs[:checkout_date_gmt]] @payment = [attrs[:payment], attrs[:payment_date_gmt]] @shipping = [attrs[:shipping], attrs[:shipping_date_gmt]] @refund = attrs[:order_refund_status] end end |
Instance Attribute Details
#checkout ⇒ Object
Returns the value of attribute checkout.
3 4 5 |
# File 'lib/channeladvisor/order_status.rb', line 3 def checkout @checkout end |
#payment ⇒ Object
Returns the value of attribute payment.
3 4 5 |
# File 'lib/channeladvisor/order_status.rb', line 3 def payment @payment end |
#refund ⇒ Object
Returns the value of attribute refund.
3 4 5 |
# File 'lib/channeladvisor/order_status.rb', line 3 def refund @refund end |
#shipping ⇒ Object
Returns the value of attribute shipping.
3 4 5 |
# File 'lib/channeladvisor/order_status.rb', line 3 def shipping @shipping end |