Method: CortexApp::Api#initialize

Defined in:
lib/cortex_app/api.rb

#initialize(bearer_token:) ⇒ Api

Returns a new instance of Api.

Parameters:

  • bearer_token (String)

    the bearer token to authenticate with Cortex



11
# File 'lib/cortex_app/api.rb', line 11

def initialize(bearer_token:) = @bearer_token = bearer_token