Class: Aspera::Plugins::Transferd::Api::ApiKeyInterceptor

Inherits:
GRPC::ClientInterceptor
  • Object
show all
Defined in:
lib/aspera/plugins/transferd/api.rb

Overview

Sends the API key of the daemon (authentication of its configuration) in the metadata api_key of each call

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ ApiKeyInterceptor

Returns a new instance of ApiKeyInterceptor.

Parameters:

  • api_key (String) —

    API key



26
27
28
29
# File 'lib/aspera/plugins/transferd/api.rb', line 26

def initialize(api_key)
  super()
  @api_key = api_key
end