Class: QuadrigaCX::Client
- Inherits:
-
Object
- Object
- QuadrigaCX::Client
- Defined in:
- lib/quadrigacx/client.rb
Constant Summary
Constants included from Request
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
readonly
Returns the value of attribute api_secret.
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
Initialize a LocalBitcoins::Client instance.
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
17 18 19 20 21 22 23 24 25 |
# File 'lib/quadrigacx/client.rb', line 17 def initialize ={} unless .kind_of?(Hash) raise ArgumentError, 'Options hash required' end @client_id = [:client_id] @api_key = [:api_key] @api_secret = [:api_secret] end |
Instance Attribute Details
#api_key ⇒ Object (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_secret ⇒ Object (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_id ⇒ Object (readonly)
Returns the value of attribute client_id.
10 11 12 |
# File 'lib/quadrigacx/client.rb', line 10 def client_id @client_id end |