Class: Cryptsy::API2::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptsy/api2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(public_key = nil, private_key = nil) ⇒ Client

Returns a new instance of Client.



22
23
24
25
26
27
28
29
# File 'lib/cryptsy/api2.rb', line 22

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

#converterObject

Returns the value of attribute converter.



20
21
22
# File 'lib/cryptsy/api2.rb', line 20

def converter
  @converter
end

#currenciesObject

Returns the value of attribute currencies.



20
21
22
# File 'lib/cryptsy/api2.rb', line 20

def currencies
  @currencies
end

#marketsObject

Returns the value of attribute markets.



20
21
22
# File 'lib/cryptsy/api2.rb', line 20

def markets
  @markets
end

#orderObject

Returns the value of attribute order.



20
21
22
# File 'lib/cryptsy/api2.rb', line 20

def order
  @order
end

#triggerObject

Returns the value of attribute trigger.



20
21
22
# File 'lib/cryptsy/api2.rb', line 20

def trigger
  @trigger
end

#userObject

Returns the value of attribute user.



20
21
22
# File 'lib/cryptsy/api2.rb', line 20

def user
  @user
end