class Bitodeme::Resource::FundAddress

FundAddress resource

Attributes

account_id[R]

Account identifier

address[R]

Address (like Bank IBAN, or BTC address)

created_at[R]

Created at in milliseconds

currency_code[R]

Currency code

current_status[R]

Current status

fund_id[R]

Fund id

id[R]

Unique identifier

is_temporary[R]

Is it a temporary address?

updated_at[R]

Updated at in milliseconds

Public Class Methods

all(options = {}) click to toggle source

List all fund addresses

Arguments:

options: (Hash)
# File lib/bitodeme/resources/fund_address.rb, line 47
def all(options = {})
  _all('fund_addresses', options)
end
find(id) click to toggle source

Find a fund address

Arguments:

id: (UUID)
# File lib/bitodeme/resources/fund_address.rb, line 39
def find(id)
  _find('fund_addresses', 'fund_address', id)
end
new(params) click to toggle source
Calls superclass method Bitodeme::Resource::Base::new
# File lib/bitodeme/resources/fund_address.rb, line 54
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