Class: Crontinel::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/crontinel.rb

Overview

Configuration object for module-level setup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



277
278
279
# File 'lib/crontinel.rb', line 277

def api_key
  @api_key
end

#endpointObject

Returns the value of attribute endpoint.



277
278
279
# File 'lib/crontinel.rb', line 277

def endpoint
  @endpoint
end