Class: Bitodeme::Resource::Currency

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

Overview

Currency resource

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

#to_h

Instance Attribute Details

#codeObject (readonly)

Short code and unique identifier



8
9
10
# File 'lib/bitodeme/resources/currency.rb', line 8

def code
  @code
end

#created_atObject (readonly)

When it is created



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

def created_at
  @created_at
end

#current_statusObject (readonly)

Current status



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

def current_status
  @current_status
end

#deposit_feeObject (readonly)

Deposit fee



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

def deposit_fee
  @deposit_fee
end

#depositableObject (readonly)

Is it depositable?



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

def depositable
  @depositable
end

#exchangeableObject (readonly)

Is it open for exchange?



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

def exchangeable
  @exchangeable
end

#min_depositable_amountObject (readonly)

Minimum depositable amount



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

def min_depositable_amount
  @min_depositable_amount
end

#min_withdrawable_amountObject (readonly)

Minimum withdrawable amount



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

def min_withdrawable_amount
  @min_withdrawable_amount
end

#nameObject (readonly)

Full name



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

def name
  @name
end

#updated_atObject (readonly)

Last updated at



35
36
37
# File 'lib/bitodeme/resources/currency.rb', line 35

def updated_at
  @updated_at
end

#withdraw_feeObject (readonly)

Withdraw fee



38
39
40
# File 'lib/bitodeme/resources/currency.rb', line 38

def withdraw_fee
  @withdraw_fee
end

#withdrawableObject (readonly)

Is it withdrawable?



41
42
43
# File 'lib/bitodeme/resources/currency.rb', line 41

def withdrawable
  @withdrawable
end

Class Method Details

.all(options = {}) ⇒ Object

List all currencies

Arguments:

options: (Hash)


48
49
50
# File 'lib/bitodeme/resources/currency.rb', line 48

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