Module: Payday::LineItemable

Included in:
LineItem
Defined in:
lib/payday/line_itemable.rb

Overview

Include this module into your line item implementation to make sure that Payday stays happy with it, or just make sure that your line item implements the amount method.

Instance Method Summary (collapse)

Instance Method Details

- (Object) amount

Returns the total amount for this Payday::LineItemable, or price * quantity



5
6
7
# File 'lib/payday/line_itemable.rb', line 5

def amount
  price * quantity
end