Class: Bitodeme::Resource::TransactionLog

Inherits:
Base
  • Object
show all
Defined in:
lib/bitodeme/resources/transaction_log.rb

Overview

TransactionLog resource

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

#to_h

Instance Attribute Details

#account_idObject (readonly)

Account identifier



8
9
10
# File 'lib/bitodeme/resources/transaction_log.rb', line 8

def 
  @account_id
end

#amountObject (readonly)

Amount



11
12
13
# File 'lib/bitodeme/resources/transaction_log.rb', line 11

def amount
  @amount
end

#created_atObject (readonly)

Created at in milliseconds



14
15
16
# File 'lib/bitodeme/resources/transaction_log.rb', line 14

def created_at
  @created_at
end

#currency_codeObject (readonly)

Currency code



17
18
19
# File 'lib/bitodeme/resources/transaction_log.rb', line 17

def currency_code
  @currency_code
end

#current_statusObject (readonly)

Current status



20
21
22
# File 'lib/bitodeme/resources/transaction_log.rb', line 20

def current_status
  @current_status
end

#descriptionObject (readonly)

Description



23
24
25
# File 'lib/bitodeme/resources/transaction_log.rb', line 23

def description
  @description
end

#fund_idObject (readonly)

Fund identifier



26
27
28
# File 'lib/bitodeme/resources/transaction_log.rb', line 26

def fund_id
  @fund_id
end

#idObject (readonly)

Unique identifier



29
30
31
# File 'lib/bitodeme/resources/transaction_log.rb', line 29

def id
  @id
end

#transactableObject (readonly)

Transaction detail



32
33
34
# File 'lib/bitodeme/resources/transaction_log.rb', line 32

def transactable
  @transactable
end

#transactable_idObject (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_typeObject (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_atObject (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(options = {})
  _all('transaction_logs', options)
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