Class: Devcal::InsecureClient

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

Overview

The InsecureClient class provides an insecure connection to the Devcal service.

Instance Method Summary collapse

Methods inherited from Client

#delete_event, #get_event, #insert_event, #list_events, #update_event

Constructor Details

#initialize(addr, api_key) ⇒ InsecureClient

Initializes a new InsecureClient instance.

Parameters:

  • addr (String)

    The address of the Devcal service.

  • api_key (String)

    The API key for authentication.



66
67
68
69
# File 'lib/devcal.rb', line 66

def initialize(addr, api_key)
  @call_opts = { metadata: { authorization: "Bearer #{api_key}" } }
  @stub = ::Devcal::EventsService::Stub.new(addr, :this_channel_is_insecure)
end