Class: Crema::Config
- Inherits:
-
Object
- Object
- Crema::Config
- Defined in:
- lib/crema/config.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/crema/config.rb', line 5 def initialize reset end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/crema/config.rb', line 3 def access_token @access_token end |
#app_id ⇒ Object
Returns the value of attribute app_id.
3 4 5 |
# File 'lib/crema/config.rb', line 3 def app_id @app_id end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/crema/config.rb', line 3 def logger @logger end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/crema/config.rb', line 3 def secret @secret end |
Instance Method Details
#reset ⇒ Object
9 10 11 12 13 14 |
# File 'lib/crema/config.rb', line 9 def reset self.app_id = ENV['CREMA_APP_ID'] self.secret = ENV['CREMA_SECRET'] self.access_token = ENV['CREMA_ACCESS_TOKEN'] self.logger = nil end |