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


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

belongs_to :bank_account

#dateDate


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

belongs_to :bank_account

#external_idString


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

belongs_to :bank_account

#ibanString


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

belongs_to :bank_account

#imageBinary


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

belongs_to :bank_account

#receiptString


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

belongs_to :bank_account

#referenceString


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

belongs_to :bank_account

#textString


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