Class: QuadrigaCX::Client

Inherits:
Object
  • Object
show all
Includes:
Private, Public, Request
Defined in:
lib/quadrigacx/client.rb

Constant Summary

Constants included from Request

Request::API_URL

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Private

#balance, #cancel_order, #deposit_address, #limit_buy, #limit_sell, #lookup_order, #market_buy, #market_sell, #open_orders, #user_transactions, #withdraw

Methods included from Public

#order_book, #ticker, #transactions

Constructor Details

#initialize(options = {}) ⇒ Client

Initialize a LocalBitcoins::Client instance

options options



17
18
19
20
21
22
23
24
25
# File 'lib/quadrigacx/client.rb', line 17

def initialize options={}
  unless options.kind_of?(Hash)
    raise ArgumentError, 'Options hash required'
  end

  @client_id  = options[:client_id]
  @api_key    = options[:api_key]
  @api_secret = options[:api_secret]
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



10
11
12
# File 'lib/quadrigacx/client.rb', line 10

def api_key
  @api_key
end

#api_secretObject (readonly)

Returns the value of attribute api_secret.



10
11
12
# File 'lib/quadrigacx/client.rb', line 10

def api_secret
  @api_secret
end

#client_idObject (readonly)

Returns the value of attribute client_id.



10
11
12
# File 'lib/quadrigacx/client.rb', line 10

def client_id
  @client_id
end