Class: Bitodeme::Resource::TransactionLog
- Defined in:
- lib/bitodeme/resources/transaction_log.rb
Overview
TransactionLog resource
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Account identifier.
-
#amount ⇒ Object
readonly
Amount.
-
#created_at ⇒ Object
readonly
Created at in milliseconds.
-
#currency_code ⇒ Object
readonly
Currency code.
-
#current_status ⇒ Object
readonly
Current status.
-
#description ⇒ Object
readonly
Description.
-
#fund_id ⇒ Object
readonly
Fund identifier.
-
#id ⇒ Object
readonly
Unique identifier.
-
#transactable ⇒ Object
readonly
Transaction detail.
-
#transactable_id ⇒ Object
readonly
Polymorphic relation identifier for transaction.
-
#transactable_type ⇒ Object
readonly
Polymorphic relation type for transaction.
-
#updated_at ⇒ Object
readonly
Updated at in milliseconds.
Class Method Summary collapse
-
.all(options = {}) ⇒ Object
List all transaction logs.
-
.find(id) ⇒ Object
Find a transaction log.
Methods inherited from Base
Instance Attribute Details
#account_id ⇒ Object (readonly)
Account identifier
8 9 10 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 8 def account_id @account_id end |
#amount ⇒ Object (readonly)
Amount
11 12 13 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 11 def amount @amount end |
#created_at ⇒ Object (readonly)
Created at in milliseconds
14 15 16 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 14 def created_at @created_at end |
#currency_code ⇒ Object (readonly)
Currency code
17 18 19 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 17 def currency_code @currency_code end |
#current_status ⇒ Object (readonly)
Current status
20 21 22 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 20 def current_status @current_status end |
#description ⇒ Object (readonly)
Description
23 24 25 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 23 def description @description end |
#fund_id ⇒ Object (readonly)
Fund identifier
26 27 28 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 26 def fund_id @fund_id end |
#id ⇒ Object (readonly)
Unique identifier
29 30 31 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 29 def id @id end |
#transactable ⇒ Object (readonly)
Transaction detail
32 33 34 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 32 def transactable @transactable end |
#transactable_id ⇒ Object (readonly)
Polymorphic relation identifier for transaction
35 36 37 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 35 def transactable_id @transactable_id end |
#transactable_type ⇒ Object (readonly)
Polymorphic relation type for transaction
38 39 40 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 38 def transactable_type @transactable_type end |
#updated_at ⇒ Object (readonly)
Updated at in milliseconds
41 42 43 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 41 def updated_at @updated_at end |
Class Method Details
.all(options = {}) ⇒ Object
List all transaction logs
Arguments:
options: (Hash)
56 57 58 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 56 def all( = {}) _all('transaction_logs', ) end |
.find(id) ⇒ Object
Find a transaction log
Arguments:
id: (UUID)
48 49 50 |
# File 'lib/bitodeme/resources/transaction_log.rb', line 48 def find(id) _find('transaction_logs', 'transaction_log', id) end |