Class: Exponea::Configuration
- Inherits:
-
Object
- Object
- Exponea::Configuration
- Defined in:
- lib/exponea/configuration.rb
Instance Attribute Summary collapse
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#project ⇒ Object
Returns the value of attribute project.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/exponea/configuration.rb', line 5 def initialize @project = ENV['EXPONEA_PROJECT'] @token = ENV['EXPONEA_TOKEN'] @api_secret = ENV['EXPONEA_API_SECRET'] end |
Instance Attribute Details
#api_secret ⇒ Object
Returns the value of attribute api_secret.
3 4 5 |
# File 'lib/exponea/configuration.rb', line 3 def api_secret @api_secret end |
#project ⇒ Object
Returns the value of attribute project.
3 4 5 |
# File 'lib/exponea/configuration.rb', line 3 def project @project end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/exponea/configuration.rb', line 3 def token @token end |