class DIDWW::Resource::Order
Public Class Methods
new(*args)
click to toggle source
Type: Boolean Description: Allowing back ordering
Calls superclass method
# File lib/didww/resources/order.rb, line 49 def initialize(*args) super self.items ||= [] end
Public Instance Methods
cancelled?()
click to toggle source
# File lib/didww/resources/order.rb, line 62 def cancelled? STATUS_CANCELLED == status end
completed?()
click to toggle source
# File lib/didww/resources/order.rb, line 58 def completed? STATUS_COMPLETED == status end
pending?()
click to toggle source
# File lib/didww/resources/order.rb, line 54 def pending? STATUS_PENDING == status end