Class: Btce::Types::Balance
- Inherits:
-
Object
- Object
- Btce::Types::Balance
- Defined in:
- lib/btce/types.rb
Instance Method Summary collapse
- #amount(currency) ⇒ Object
-
#initialize(data) ⇒ Balance
constructor
from Response.return.
- #to_s ⇒ Object
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_s ⇒ Object
46 47 48 |
# File 'lib/btce/types.rb', line 46 def to_s @funds.to_s end |