Class: KrakenClient::Configuration
- Inherits:
-
Object
- Object
- KrakenClient::Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#limit_current_count ⇒ Object
Returns the value of attribute limit_current_count.
-
#limiter ⇒ Object
Returns the value of attribute limiter.
-
#limiter_interface ⇒ Object
Returns the value of attribute limiter_interface.
-
#tier ⇒ Object
Returns the value of attribute tier.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/configuration.rb', line 7 def initialize @api_key = ENV['KRAKEN_API_KEY'] @api_secret = ENV['KRAKEN_API_SECRET'] @base_uri = 'https://api.kraken.com' @api_version = 0 @limiter = true @tier = 2 @limiter_interface ||= KrakenClient::Requests::Limiter.new(self) end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/configuration.rb', line 4 def api_key @api_key end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
4 5 6 |
# File 'lib/configuration.rb', line 4 def api_secret @api_secret end |
#api_version ⇒ Object
Returns the value of attribute api_version.
4 5 6 |
# File 'lib/configuration.rb', line 4 def api_version @api_version end |
#base_uri ⇒ Object
Returns the value of attribute base_uri.
4 5 6 |
# File 'lib/configuration.rb', line 4 def base_uri @base_uri end |
#limit_current_count ⇒ Object
Returns the value of attribute limit_current_count.
4 5 6 |
# File 'lib/configuration.rb', line 4 def limit_current_count @limit_current_count end |
#limiter ⇒ Object
Returns the value of attribute limiter.
4 5 6 |
# File 'lib/configuration.rb', line 4 def limiter @limiter end |
#limiter_interface ⇒ Object
Returns the value of attribute limiter_interface.
4 5 6 |
# File 'lib/configuration.rb', line 4 def limiter_interface @limiter_interface end |
#tier ⇒ Object
Returns the value of attribute tier.
4 5 6 |
# File 'lib/configuration.rb', line 4 def tier @tier end |