Class: LedgerSync::Payment

Inherits:
Resource show all
Defined in:
lib/ledger_sync/resources/payment.rb

Instance Attribute Summary

Attributes inherited from Resource

#external_id, #ledger_id, #sync_token

Instance Method Summary collapse

Methods inherited from Resource

#==, attribute, #attributes, attributes, #initialize, klass_from_resource_type, reference, reference_klass, reference_resource_type, #references, references, resource_type, #serialize_attributes

Methods included from Validatable

#valid?, #validate, #validate_or_fail

Constructor Details

This class inherits a constructor from LedgerSync::Resource

Instance Method Details

#nameObject



7
8
9
# File 'lib/ledger_sync/resources/payment.rb', line 7

def name
  "Payment: #{amount} #{currency}"
end