Class: BankTransaction

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/bank_transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountNumber

Returns Amount credited.

Returns:

  • (Number)

    Amount credited.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

#dateDate

Returns Date of the transaction.

Returns:

  • (Date)

    Date of the transaction.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

#external_idString

Returns Unique Identifier of the transaction within the bank account.

Returns:

  • (String)

    Unique Identifier of the transaction within the bank account.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

#ibanString

Returns Internation Bank Account Number of the sending/receiving account.

Returns:

  • (String)

    Internation Bank Account Number of the sending/receiving account.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

#imageBinary

Returns Optional PNG image for e.g. scan of paper receipt.

Returns:

  • (Binary)

    Optional PNG image for e.g. scan of paper receipt.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

#receiptString

Returns Optional additional more detailed description of the transaction.

Returns:

  • (String)

    Optional additional more detailed description of the transaction.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

#referenceString

Returns 140 character long reference field as defined by SEPA.

Returns:

  • (String)

    140 character long reference field as defined by SEPA.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

#textString

Returns Short description of the transaction.

Returns:

  • (String)

    Short description of the transaction.


20
# File 'app/models/bank_transaction.rb', line 20

belongs_to :bank_account

Instance Method Details

#image_urlObject


33
34
35
# File 'app/models/bank_transaction.rb', line 33

def image_url
  'data:image/png;base64,' + Base64.encode64(self.image)
end