Class: Bitex::SpecieDeposit
- Inherits:
-
Object
- Object
- Bitex::SpecieDeposit
- Defined in:
- lib/bitex/specie_deposit.rb
Overview
A deposit of some specie into your bitex.la balance
Instance Attribute Summary collapse
-
#created_at ⇒ Time
Time when this deposit credited.
-
#id ⇒ Integer
This SpecieDeposit’s unique ID.
-
#quantity ⇒ BigDecimal
Quantity deposited.
-
#specie ⇒ Symbol
:btc.
Class Method Summary collapse
Instance Attribute Details
#created_at ⇒ Time
Returns Time when this deposit credited.
10 11 12 |
# File 'lib/bitex/specie_deposit.rb', line 10 def created_at @created_at end |
#id ⇒ Integer
Returns This SpecieDeposit’s unique ID.
6 7 8 |
# File 'lib/bitex/specie_deposit.rb', line 6 def id @id end |
#quantity ⇒ BigDecimal
Returns Quantity deposited.
18 19 20 |
# File 'lib/bitex/specie_deposit.rb', line 18 def quantity @quantity end |
#specie ⇒ Symbol
Returns :btc.
14 15 16 |
# File 'lib/bitex/specie_deposit.rb', line 14 def specie @specie end |
Class Method Details
.all(specie) ⇒ Object
32 33 34 |
# File 'lib/bitex/specie_deposit.rb', line 32 def self.all(specie) Api.private(:get, "/private/#{specie}/deposits").map { |sd| from_json(sd) } end |
.find(specie, id) ⇒ Object
28 29 30 |
# File 'lib/bitex/specie_deposit.rb', line 28 def self.find(specie, id) from_json(Api.private(:get, "/private/#{specie}/deposits/#{id}")) end |
.species ⇒ Object
36 37 38 |
# File 'lib/bitex/specie_deposit.rb', line 36 def self.species { 0 => :btc } end |