Class: CortexApp::Api

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

Overview

Base class for Cortex API classes

Direct Known Subclasses

CustomData

Constant Summary collapse

API_URL =
'https://api.getcortexapp.com/api/v1'

Instance Method Summary collapse

Constructor Details

#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