Class: BillTrap::InvoiceEntry

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/billtrap/models.rb

Instance Method Summary collapse

Instance Method Details

#totalObject



146
147
148
# File 'lib/billtrap/models.rb', line 146

def total
  Money.new(cents, invoice.currency) * count
end

#typed_amountObject



142
143
144
# File 'lib/billtrap/models.rb', line 142

def typed_amount
 return "#{count}#{unit}"
end