Class: Cryptsy::API2::Client
- Inherits:
-
Object
- Object
- Cryptsy::API2::Client
- Defined in:
- lib/cryptsy/api2.rb
Instance Attribute Summary collapse
-
#converter ⇒ Object
Returns the value of attribute converter.
-
#currencies ⇒ Object
Returns the value of attribute currencies.
-
#markets ⇒ Object
Returns the value of attribute markets.
-
#order ⇒ Object
Returns the value of attribute order.
-
#trigger ⇒ Object
Returns the value of attribute trigger.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(public_key = nil, private_key = nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(public_key = nil, private_key = nil) ⇒ Client
Returns a new instance of Client.
21 22 23 24 25 26 27 28 |
# File 'lib/cryptsy/api2.rb', line 21 def initialize(public_key=nil, private_key=nil) @user = User.new(public_key, private_key) @markets = Markets.new(public_key, private_key) @currencies = Currencies.new(public_key, private_key) @order = Order.new(public_key, private_key) @converter = Converter.new(public_key, private_key) @trigger = Trigger.new(public_key, private_key) end |
Instance Attribute Details
#converter ⇒ Object
Returns the value of attribute converter.
19 20 21 |
# File 'lib/cryptsy/api2.rb', line 19 def converter @converter end |
#currencies ⇒ Object
Returns the value of attribute currencies.
19 20 21 |
# File 'lib/cryptsy/api2.rb', line 19 def currencies @currencies end |
#markets ⇒ Object
Returns the value of attribute markets.
19 20 21 |
# File 'lib/cryptsy/api2.rb', line 19 def markets @markets end |
#order ⇒ Object
Returns the value of attribute order.
19 20 21 |
# File 'lib/cryptsy/api2.rb', line 19 def order @order end |
#trigger ⇒ Object
Returns the value of attribute trigger.
19 20 21 |
# File 'lib/cryptsy/api2.rb', line 19 def trigger @trigger end |
#user ⇒ Object
Returns the value of attribute user.
19 20 21 |
# File 'lib/cryptsy/api2.rb', line 19 def user @user end |