Class: Bitodeme::Resource::FundAddress

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

Overview

FundAddress 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_address.rb', line 8

def 
  @account_id
end

#addressObject (readonly)

Address (like Bank IBAN, or BTC address)



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

def address
  @address
end

#created_atObject (readonly)

Created at in milliseconds



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

def created_at
  @created_at
end

#currency_codeObject (readonly)

Currency code



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

def currency_code
  @currency_code
end

#current_statusObject (readonly)

Current status



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

def current_status
  @current_status
end

#fund_idObject (readonly)

Fund id



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

def fund_id
  @fund_id
end

#idObject (readonly)

Unique identifier



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

def id
  @id
end

#is_temporaryObject (readonly)

Is it a temporary address?



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

def is_temporary
  @is_temporary
end

#updated_atObject (readonly)

Updated at in milliseconds



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

def updated_at
  @updated_at
end

Class Method Details

.all(options = {}) ⇒ Object

List all fund addresses

Arguments:

options: (Hash)


47
48
49
# File 'lib/bitodeme/resources/fund_address.rb', line 47

def all(options = {})
  _all('fund_addresses', options)
end

.find(id) ⇒ Object

Find a fund address

Arguments:

id: (UUID)


39
40
41
# File 'lib/bitodeme/resources/fund_address.rb', line 39

def find(id)
  _find('fund_addresses', 'fund_address', id)
end