Module: Order::Totaling

Defined in:
app/models/order.rb

Instance Method Summary collapse

Instance Method Details

#totalObject



3
4
5
# File 'app/models/order.rb', line 3

def total
  map(&:amount).sum
end