Class: Xeroizer::Record::Payment
- Defined in:
- lib/xeroizer/models/payment.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes, #complete_record_downloaded, #errors, #model, #parent
Instance Method Summary collapse
Methods inherited from Base
#[], #[]=, #as_json, build, #complete_record_downloaded?, #download_complete_record!, #initialize, #inspect, #new_model_class, #new_record?, #non_calculated_attributes, #save, #saved!, #to_h, #to_json, #update_attributes
Methods included from XmlHelper
Methods included from ValidationHelper
Methods included from RecordAssociationHelper
Methods included from ModelDefinitionHelper
Methods included from ClassLevelInheritableAttributes
Constructor Details
This class inherits a constructor from Xeroizer::Record::Base
Instance Method Details
#account_code ⇒ Object
35 36 37 |
# File 'lib/xeroizer/models/payment.rb', line 35 def account_code account.code if account end |
#account_id ⇒ Object
31 32 33 |
# File 'lib/xeroizer/models/payment.rb', line 31 def account_id account.id if account end |
#invoice_id ⇒ Object
27 28 29 |
# File 'lib/xeroizer/models/payment.rb', line 27 def invoice_id invoice.id if invoice end |