class Bitodeme::Resource::TransactionLog
TransactionLog
resource
Attributes
account_id[R]
Account identifier
amount[R]
Amount
created_at[R]
Created at in milliseconds
currency_code[R]
Currency
code
current_status[R]
Current status
description[R]
Description
fund_id[R]
Fund
identifier
id[R]
Unique identifier
transactable[R]
Transaction detail
transactable_id[R]
Polymorphic relation identifier for transaction
transactable_type[R]
Polymorphic relation type for transaction
updated_at[R]
Updated at in milliseconds
Public Class Methods
all(options = {})
click to toggle source
List all transaction logs
Arguments:
options: (Hash)
# File lib/bitodeme/resources/transaction_log.rb, line 56 def all(options = {}) _all('transaction_logs', options) end
find(id)
click to toggle source
Find a transaction log
Arguments:
id: (UUID)
# File lib/bitodeme/resources/transaction_log.rb, line 48 def find(id) _find('transaction_logs', 'transaction_log', id) end
new(params)
click to toggle source
Calls superclass method
Bitodeme::Resource::Base::new
# File lib/bitodeme/resources/transaction_log.rb, line 63 def initialize(params) super(attrs: attrs, params: params) end
Private Class Methods
new(attrs:, params:)
click to toggle source
# File lib/bitodeme/resources/base.rb, line 54 def initialize(attrs:, params:) attrs.each do |attr| val = params.fetch(attr.to_s, params.fetch(attr, nil)) instance_variable_set("@#{attr}", val) end end