Class: Eclaircir::Configuration
- Inherits:
-
Object
- Object
- Eclaircir::Configuration
- Defined in:
- lib/eclaircir/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(env: ENV, api_key: nil) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(env: ENV, api_key: nil) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/eclaircir/configuration.rb', line 5 def initialize( env: ENV, api_key: nil) @api_key = api_key || env['CLARIFIER_API_KEY'] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/eclaircir/configuration.rb', line 11 def api_key @api_key end |