module Omniorder::OrderProductable

Public Instance Methods

<=>(other) click to toggle source
# File lib/omniorder/order_productable.rb, line 3
def <=>(other)
  product <=> other.product
end
to_s() click to toggle source
# File lib/omniorder/order_productable.rb, line 7
def to_s
  quantity.to_s + 'x' + product.code
end