Class: Kaui::InvoiceItem
- Inherits:
-
KillBillClient::Model::InvoiceItem
- Object
- KillBillClient::Model::InvoiceItem
- Kaui::InvoiceItem
- Defined in:
- app/models/kaui/invoice_item.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.amount_to_money(invoice_item) ⇒ Object
9 10 11 |
# File 'app/models/kaui/invoice_item.rb', line 9 def self.amount_to_money(invoice_item) new(amount: invoice_item.amount, currency: invoice_item.currency).amount_to_money end |
Instance Method Details
#amount_to_money ⇒ Object
5 6 7 |
# File 'app/models/kaui/invoice_item.rb', line 5 def amount_to_money Kaui::Base.to_money(amount, currency) end |