Method: CoreLibrary::ApiCall#endpoint_context

Defined in:
lib/apimatic-core/api_call.rb

#endpoint_context(context_key, context_value) ⇒ ApiCall

The setter for the context for an endpoint call.

Parameters:

  • context_key (String)

    The name of the endpoint context.

  • context_value (Object)

    The value of the endpoint context.

Returns:

  • (ApiCall)

    An updated instance of ApiCall.



40
41
42
43
# File 'lib/apimatic-core/api_call.rb', line 40

def endpoint_context(context_key, context_value)
  @endpoint_context[context_key] = context_value
  self
end