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