Class: Bitodeme::Resource::Fund
- Defined in:
- lib/bitodeme/resources/fund.rb
Overview
Fund resource
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Account identifier.
-
#amount ⇒ Object
readonly
Current balance.
-
#created_at ⇒ Object
readonly
When it is created.
-
#currency_code ⇒ Object
readonly
Currency code.
-
#current_status ⇒ Object
readonly
Current status.
-
#id ⇒ Object
readonly
Unique identifier.
-
#updated_at ⇒ Object
readonly
Updated at in milliseconds.
Class Method Summary collapse
-
.all(options = {}) ⇒ Object
List all funds.
-
.find(id) ⇒ Object
Find a fund.
Methods inherited from Base
Instance Attribute Details
#account_id ⇒ Object (readonly)
Account identifier
8 9 10 |
# File 'lib/bitodeme/resources/fund.rb', line 8 def account_id @account_id end |
#amount ⇒ Object (readonly)
Current balance
11 12 13 |
# File 'lib/bitodeme/resources/fund.rb', line 11 def amount @amount end |
#created_at ⇒ Object (readonly)
When it is created
14 15 16 |
# File 'lib/bitodeme/resources/fund.rb', line 14 def created_at @created_at end |
#currency_code ⇒ Object (readonly)
Currency code
17 18 19 |
# File 'lib/bitodeme/resources/fund.rb', line 17 def currency_code @currency_code end |
#current_status ⇒ Object (readonly)
Current status
20 21 22 |
# File 'lib/bitodeme/resources/fund.rb', line 20 def current_status @current_status end |
#id ⇒ Object (readonly)
Unique identifier
23 24 25 |
# File 'lib/bitodeme/resources/fund.rb', line 23 def id @id end |
#updated_at ⇒ Object (readonly)
Updated at in milliseconds
26 27 28 |
# File 'lib/bitodeme/resources/fund.rb', line 26 def updated_at @updated_at end |
Class Method Details
.all(options = {}) ⇒ Object
List all funds
Arguments:
options: (Hash)
41 42 43 |
# File 'lib/bitodeme/resources/fund.rb', line 41 def all( = {}) _all('funds', ) end |
.find(id) ⇒ Object
Find a fund
Arguments:
id: (UUID)
33 34 35 |
# File 'lib/bitodeme/resources/fund.rb', line 33 def find(id) _find('funds', 'fund', id) end |