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.



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

#converterObject

Returns the value of attribute converter.



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

def converter
  @converter
end

#currenciesObject

Returns the value of attribute currencies.



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

def currencies
  @currencies
end

#marketsObject

Returns the value of attribute markets.



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

def markets
  @markets
end

#orderObject

Returns the value of attribute order.



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

def order
  @order
end

#triggerObject

Returns the value of attribute trigger.



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

def trigger
  @trigger
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end