Class: Crontinel::Configuration
- Inherits:
-
Object
- Object
- Crontinel::Configuration
- Defined in:
- lib/crontinel.rb
Overview
Configuration object for module-level setup
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
279 280 281 282 |
# File 'lib/crontinel.rb', line 279 def initialize @api_key = ENV.fetch("CRONTINEL_API_KEY", nil) @endpoint = ENV.fetch("CRONTINEL_API_URL", "https://app.crontinel.com") end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
277 278 279 |
# File 'lib/crontinel.rb', line 277 def api_key @api_key end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
277 278 279 |
# File 'lib/crontinel.rb', line 277 def endpoint @endpoint end |