Class: Btce::Types::Balance

Inherits:
Object
  • Object
show all
Defined in:
lib/btce/types.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Balance

from Response.return



38
39
40
# File 'lib/btce/types.rb', line 38

def initialize(data) # from Response.return
  @funds = data['funds']
end

Instance Method Details

#amount(currency) ⇒ Object



42
43
44
# File 'lib/btce/types.rb', line 42

def amount(currency)
  @funds[currency]
end

#to_sObject



46
47
48
# File 'lib/btce/types.rb', line 46

def to_s
  @funds.to_s
end