Module: Payday::LineItemable
- Included in:
- LineItem
- Defined in:
- lib/payday/line_itemable.rb
Instance Method Summary collapse
-
#amount ⇒ Object
Returns the total amount for this LineItemable, or price * quantity.
Instance Method Details
#amount ⇒ Object
Returns the total amount for this Payday::LineItemable, or price * quantity
10 11 12 13 14 |
# File 'lib/payday/line_itemable.rb', line 10 def amount return predefined_amount if predefined_amount price * quantity end |