Sha256: 36c38c76c907235f5d4c7f4c73cf4b94924d0f6d8476956b68027709e6fa391c
Contents?: true
Size: 379 Bytes
Versions: 9
Compression:
Stored size: 379 Bytes
Contents
class Kaui::Invoice < KillBillClient::Model::Invoice [:amount, :balance, :credits].each do |type| define_method "#{type}_to_money" do Kaui::Base.to_money(send(type), currency) end end def refund_adjustment_to_money Kaui::Base.to_money(refund_adj, currency) end def credit_adjustment_to_money Kaui::Base.to_money(credit_adj, currency) end end
Version data entries
9 entries across 9 versions & 1 rubygems