Class: Kaui::InvoiceItem

Inherits:
KillBillClient::Model::InvoiceItem
  • Object
show all
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


7
8
9
# File 'app/models/kaui/invoice_item.rb', line 7

def self.amount_to_money(invoice_item)
  self.new(:amount => invoice_item.amount, :currency => invoice_item.currency).amount_to_money
end

Instance Method Details

#amount_to_moneyObject


3
4
5
# File 'app/models/kaui/invoice_item.rb', line 3

def amount_to_money
  Kaui::Base.to_money(amount, currency)
end