Class: BillTrap::InvoiceEntry
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- BillTrap::InvoiceEntry
- Defined in:
- lib/billtrap/models.rb
Instance Method Summary collapse
Instance Method Details
#total ⇒ Object
146 147 148 |
# File 'lib/billtrap/models.rb', line 146 def total Money.new(cents, invoice.currency) * count end |
#typed_amount ⇒ Object
142 143 144 |
# File 'lib/billtrap/models.rb', line 142 def typed_amount return "#{count}#{unit}" end |