LexOffice.RequestBuilder.evaluate_response

You're seeing just the function evaluate_response, go back to LexOffice.RequestBuilder module for more information.
Link to this function

evaluate_response(error, mapping)

View Source

Specs

evaluate_response({:error, any()} | {:atom, Tesla.Env.t()}, list()) ::
  {:ok, struct()} | {:ok, Tesla.Env.t()} | {:error, any()}

Evaluates the Tesla response

Parameters

  • arg1 {:atom, Tesla.Env.t} - The response object
  • arg2 list - List of Tuples matching something like [{200, %Model.ErrorResponse{}}]

Returns

{:ok, struct} on success {:ok, Tesla.Env.t()} on failure {:error, term} on failure