Class: Bitodeme::Resource::Fund

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

Overview

Fund 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/fund.rb', line 8

def 
  @account_id
end

#amountObject (readonly)

Current balance



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

def amount
  @amount
end

#created_atObject (readonly)

When it is created



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

def created_at
  @created_at
end

#currency_codeObject (readonly)

Currency code



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

def currency_code
  @currency_code
end

#current_statusObject (readonly)

Current status



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

def current_status
  @current_status
end

#idObject (readonly)

Unique identifier



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

def id
  @id
end

#updated_atObject (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(options = {})
  _all('funds', options)
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