Class: TraceForge::Configuration
- Inherits:
-
Object
- Object
- TraceForge::Configuration
- Defined in:
- lib/traceforge.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#ingest_url ⇒ Object
Returns the value of attribute ingest_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 22 |
# File 'lib/traceforge.rb', line 19 def initialize @api_key = ENV['TRACEFORGE_API_KEY'] @ingest_url = ENV['TRACEFORGE_INGEST_URL'] || 'http://localhost:3001/ingest' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
17 18 19 |
# File 'lib/traceforge.rb', line 17 def api_key @api_key end |
#ingest_url ⇒ Object
Returns the value of attribute ingest_url.
17 18 19 |
# File 'lib/traceforge.rb', line 17 def ingest_url @ingest_url end |