Class: ChannelAdvisor::OrderStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/channeladvisor/order_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checkoutObject

Returns the value of attribute checkout.



3
4
5
# File 'lib/channeladvisor/order_status.rb', line 3

def checkout
  @checkout
end

#paymentObject

Returns the value of attribute payment.



3
4
5
# File 'lib/channeladvisor/order_status.rb', line 3

def payment
  @payment
end

#refundObject

Returns the value of attribute refund.



3
4
5
# File 'lib/channeladvisor/order_status.rb', line 3

def refund
  @refund
end

#shippingObject

Returns the value of attribute shipping.



3
4
5
# File 'lib/channeladvisor/order_status.rb', line 3

def shipping
  @shipping
end