Class: Reckoner::Cdp::API::StreamingCore

Inherits:
Object
  • Object
show all
Includes:
Streaming
Defined in:
lib/reckoner/cdp/api/streaming_core.rb

Constant Summary collapse

STATUS =
{
  ok: 200,
  unauthorized: 401,
  client_error: 400..499,
  server_error: 500..599,
}.freeze

Instance Method Summary collapse

Methods included from Streaming

#insert

Constructor Details

#initialize(token, endpoint, client_id, connection) ⇒ StreamingCore

Returns a new instance of StreamingCore.



21
22
23
24
25
26
# File 'lib/reckoner/cdp/api/streaming_core.rb', line 21

def initialize(token, endpoint, client_id, connection)
  @endpoint = endpoint || Reckoner::Cdp::STREAMING_ENDPOINT
  @client_id = client_id || Reckoner::Cdp::STREAMING_CLIENT_ID
  @connection = connection || default_connection
  @token = token || ""
end