Humaans.PerformanceRatings (Humaans v0.6.0)

Copy Markdown View Source

This module provides functions for retrieving performance rating resources in the Humaans API. Performance ratings are retrieve-only via the API.

Summary

Functions

Retrieves a specific performance_rating by ID.

Types

response()

@type response() ::
  {:ok,
   %Humaans.Resources.PerformanceRating{
     company_id: term(),
     created_at: term(),
     id: term(),
     person_id: term(),
     updated_at: term(),
     value: term()
   }}
  | {:error, Humaans.Error.t()}

Functions

retrieve(client, id)

@spec retrieve(client :: map(), id :: String.t()) ::
  {:ok, Humaans.Resources.PerformanceRating.t()} | {:error, Humaans.Error.t()}

Retrieves a specific performance_rating by ID.

Parameters

  • client - Client created with Humaans.new/1
  • id - String ID of the performance_rating to retrieve

Examples

client = Humaans.new(access_token: "your_access_token")
{:ok, performance_rating} = Humaans.PerformanceRatings.retrieve(client, "performance_rating_id")