Class: KrakenClient::Application
- Inherits:
-
Object
- Object
- KrakenClient::Application
- Defined in:
- lib/kraken_client/application.rb
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(params) ⇒ Application
constructor
A new instance of Application.
- #private(options = {}) ⇒ Object
- #public(options = {}) ⇒ Object
Constructor Details
#initialize(params) ⇒ Application
Returns a new instance of Application.
11 12 13 |
# File 'lib/kraken_client/application.rb', line 11 def initialize(params) set_config(params) end |
Instance Method Details
#config ⇒ Object
25 26 27 |
# File 'lib/kraken_client/application.rb', line 25 def config @config ||= ::KrakenClient.config.dup end |
#private(options = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/kraken_client/application.rb', line 19 def private( = {}) requires_api_keys ::KrakenClient::Endpoints::Private.new(config, ) end |
#public(options = {}) ⇒ Object
15 16 17 |
# File 'lib/kraken_client/application.rb', line 15 def public( = {}) ::KrakenClient::Endpoints::Public.new(config, ) end |