Class: TraceForge::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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'] || 'https://usetraceforge.com/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