class Bitodeme::Resource::Fund
Fund
resource
Attributes
account_id[R]
Account identifier
amount[R]
Current balance
created_at[R]
When it is created
currency_code[R]
Currency
code
current_status[R]
Current status
id[R]
Unique identifier
updated_at[R]
Updated at in milliseconds
Public Class Methods
all(options = {})
click to toggle source
List all funds
Arguments:
options: (Hash)
# File lib/bitodeme/resources/fund.rb, line 41 def all(options = {}) _all('funds', options) end
find(id)
click to toggle source
Find a fund
Arguments:
id: (UUID)
# File lib/bitodeme/resources/fund.rb, line 33 def find(id) _find('funds', 'fund', id) end
new(params)
click to toggle source
Calls superclass method
Bitodeme::Resource::Base::new
# File lib/bitodeme/resources/fund.rb, line 48 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