Class: Kaui::InvoiceItem

Inherits:
Base
  • Object
show all
Defined in:
app/models/kaui/invoice_item.rb

Constant Summary collapse

SAMPLE_REASON_CODES =
[ "100 - Courtesy",
"101 - Billing Error",
"199 - OTHER" ]

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

#==, all, #attributes=, camelize, convert_hash_keys, count, define_attr, #destroy, find, from_json, has_many, has_one, human_attribute_name, #initialize, lookup_ancestors, #new_record?, #persisted?, #read_attribute_for_validation, #save, #to_hash, to_money, #to_param, #update_attributes

Constructor Details

This class inherits a constructor from Kaui::Base

Instance Method Details

#amount_to_moneyObject



21
22
23
# File 'app/models/kaui/invoice_item.rb', line 21

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