Class: Cryptsy::API2::Converter

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Converter.



4
5
6
7
# File 'lib/cryptsy/api2/converter.rb', line 4

def initialize(public_key=nil, private_key=nil)
  @public_key = public_key
  @private_key = private_key
end

Instance Method Details

#create(options) ⇒ Object



9
10
11
# File 'lib/cryptsy/api2/converter.rb', line 9

def create(options)
  Request.send("converter", options, @public_key, @private_key, "POST")
end

#depositaddress(quote_id) ⇒ Object



17
18
19
# File 'lib/cryptsy/api2/converter.rb', line 17

def depositaddress(quote_id)
  Request.send("converter/#{quote_id}/depositaddress", {}, @public_key, @private_key)
end

#info(quote_id) ⇒ Object



13
14
15
# File 'lib/cryptsy/api2/converter.rb', line 13

def info(quote_id)
  Request.send("converter/#{quote_id}", {}, @public_key, @private_key)
end