Class: Cryptsy::API2::Currencies
- Inherits:
-
Object
- Object
- Cryptsy::API2::Currencies
- Defined in:
- lib/cryptsy/api2/currencies.rb
Instance Method Summary collapse
- #info(currency_id) ⇒ Object
-
#initialize(public_key = nil, private_key = nil) ⇒ Currencies
constructor
A new instance of Currencies.
- #list ⇒ Object
- #marketlist(currency_id) ⇒ Object
Constructor Details
#initialize(public_key = nil, private_key = nil) ⇒ Currencies
4 5 6 7 |
# File 'lib/cryptsy/api2/currencies.rb', line 4 def initialize(public_key=nil, private_key=nil) @public_key = public_key @private_key = private_key end |
Instance Method Details
#info(currency_id) ⇒ Object
13 14 15 |
# File 'lib/cryptsy/api2/currencies.rb', line 13 def info(currency_id) Request.send("currencies/#{currency_id}") end |
#list ⇒ Object
9 10 11 |
# File 'lib/cryptsy/api2/currencies.rb', line 9 def list Request.send("currencies") end |
#marketlist(currency_id) ⇒ Object
17 18 19 |
# File 'lib/cryptsy/api2/currencies.rb', line 17 def marketlist(currency_id) Request.send("currencies/#{currency_id}/markets") end |