Class: Polar::Configuration
- Inherits:
-
Object
- Object
- Polar::Configuration
- Defined in:
- lib/polar/configuration.rb
Constant Summary collapse
- PRODUCTION_SERVER =
Server environments
'https://api.polar.sh/v1'- SANDBOX_SERVER =
'https://sandbox-api.polar.sh/v1'
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#server ⇒ Object
Returns the value of attribute server.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 |
# File 'lib/polar/configuration.rb', line 11 def initialize @server = :production @timeout = 30 @retries = 3 @debug = false @logger = nil end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def access_token @access_token end |
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def base_url @base_url end |
#debug ⇒ Object
Returns the value of attribute debug.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def debug @debug end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def logger @logger end |
#retries ⇒ Object
Returns the value of attribute retries.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def retries @retries end |
#server ⇒ Object
Returns the value of attribute server.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def server @server end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def timeout @timeout end |