Class: Blupee::Configuration
- Inherits:
-
Object
- Object
- Blupee::Configuration
- Defined in:
- lib/blupee/configuration.rb
Overview
Global configuration for Blupee.
Instance Attribute Summary collapse
-
#access_token ⇒ Object
The default access token to be used if none is otherwise supplied.
-
#api_server ⇒ Object
Returns the value of attribute api_server.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#client_id ⇒ Object
The default client ID to use if none is otherwise supplied.
-
#client_secret ⇒ Object
The default client secret value to be used if none is otherwise supplied.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 |
# File 'lib/blupee/configuration.rb', line 16 def initialize self.api_server = "api.blupee.io" self.api_version = "v1" end |
Instance Attribute Details
#access_token ⇒ Object
The default access token to be used if none is otherwise supplied.
4 5 6 |
# File 'lib/blupee/configuration.rb', line 4 def access_token @access_token end |
#api_server ⇒ Object
Returns the value of attribute api_server.
12 13 14 |
# File 'lib/blupee/configuration.rb', line 12 def api_server @api_server end |
#api_version ⇒ Object
Returns the value of attribute api_version.
14 15 16 |
# File 'lib/blupee/configuration.rb', line 14 def api_version @api_version end |
#client_id ⇒ Object
The default client ID to use if none is otherwise supplied.
10 11 12 |
# File 'lib/blupee/configuration.rb', line 10 def client_id @client_id end |
#client_secret ⇒ Object
The default client secret value to be used if none is otherwise supplied.
7 8 9 |
# File 'lib/blupee/configuration.rb', line 7 def client_secret @client_secret end |