class Authzed::Api::V1alpha1::Client

Attributes

schema_service[R]

Public Class Methods

new(target:, credentials: nil, interceptors: [], options: {}, timeout: nil) click to toggle source
# File lib/authzed/api/v1alpha1/client.rb, line 10
def initialize(target:, credentials: nil, interceptors: [], options: {}, timeout: nil)
  creds = credentials || GRPC::Core::ChannelCredentials.new

  @schema_service = Authzed::Api::V1alpha1::SchemaService::Stub.new(
    target,
    creds,
    timeout: timeout,
    interceptors: interceptors,
    channel_args: options,
  )
end