Sha256: 20e30dad5d068e5f1bb04e98e356c2404d56c4da89211d7b008882a00b2968ec

Contents?: true

Size: 281 Bytes

Versions: 15

Compression:

Stored size: 281 Bytes

Contents

class Kaui::InvoiceItem < KillBillClient::Model::InvoiceItem

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kaui-2.1.0 app/models/kaui/invoice_item.rb
kaui-2.0.4 app/models/kaui/invoice_item.rb
kaui-2.0.3 app/models/kaui/invoice_item.rb
kaui-2.0.2 app/models/kaui/invoice_item.rb
kaui-2.0.1 app/models/kaui/invoice_item.rb
kaui-2.0.0 app/models/kaui/invoice_item.rb
kaui-1.4.1 app/models/kaui/invoice_item.rb
kaui-1.4.0 app/models/kaui/invoice_item.rb
kaui-1.3.0 app/models/kaui/invoice_item.rb
kaui-1.2.0 app/models/kaui/invoice_item.rb
kaui-1.1.0 app/models/kaui/invoice_item.rb
kaui-1.0.0 app/models/kaui/invoice_item.rb
kaui-0.16.2 app/models/kaui/invoice_item.rb
kaui-0.16.1 app/models/kaui/invoice_item.rb
kaui-0.16.0 app/models/kaui/invoice_item.rb