Sha256: dd9b3b61e59717e84b2d5ba9ed4121e807f99d813fce279c60b25ffdbdd8bf9e

Contents?: true

Size: 1 KB

Versions: 28

Compression:

Stored size: 1 KB

Contents

module Workarea
  class Order
    module Status
      class Cart
        include StatusCalculator::Status

        def in_status?
          !order.canceled? &&
            !order.placed? &&
            !order.checking_out? &&
            !order.abandoned? &&
            !order.fraud_suspected?
        end
      end

      class Canceled
        include StatusCalculator::Status

        def in_status?
          order.canceled?
        end
      end

      class Placed
        include StatusCalculator::Status

        def in_status?
          order.placed?
        end
      end

      class Checkout
        include StatusCalculator::Status

        def in_status?
          order.checking_out?
        end
      end

      class Abandoned
        include StatusCalculator::Status

        def in_status?
          order.abandoned?
        end
      end

      class SuspectedFraud
        include StatusCalculator::Status

        def in_status?
          order.fraud_suspected?
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.27 app/models/workarea/order/status.rb
workarea-core-3.5.26 app/models/workarea/order/status.rb
workarea-core-3.5.25 app/models/workarea/order/status.rb
workarea-core-3.5.23 app/models/workarea/order/status.rb
workarea-core-3.5.22 app/models/workarea/order/status.rb
workarea-core-3.5.21 app/models/workarea/order/status.rb
workarea-core-3.5.20 app/models/workarea/order/status.rb
workarea-core-3.5.19 app/models/workarea/order/status.rb
workarea-core-3.5.18 app/models/workarea/order/status.rb
workarea-core-3.5.17 app/models/workarea/order/status.rb
workarea-core-3.5.16 app/models/workarea/order/status.rb
workarea-core-3.5.15 app/models/workarea/order/status.rb
workarea-core-3.5.14 app/models/workarea/order/status.rb
workarea-core-3.5.13 app/models/workarea/order/status.rb
workarea-core-3.5.12 app/models/workarea/order/status.rb
workarea-core-3.5.11 app/models/workarea/order/status.rb
workarea-core-3.5.10 app/models/workarea/order/status.rb
workarea-core-3.5.9 app/models/workarea/order/status.rb
workarea-core-3.5.8 app/models/workarea/order/status.rb
workarea-core-3.5.7 app/models/workarea/order/status.rb