Humaans.Resources.TimeAwayAllocation (Humaans v0.6.0)

Copy Markdown View Source

Representation of a Time Away Allocation resource.

Summary

Types

t()

@type t() :: %Humaans.Resources.TimeAwayAllocation{
  amount: number() | nil,
  created_at: DateTime.t() | nil,
  end_date: Date.t() | nil,
  id: binary() | nil,
  person_id: binary() | nil,
  start_date: Date.t() | nil,
  time_away_policy_id: binary() | nil,
  time_away_type_id: binary() | nil,
  unit: binary() | nil,
  updated_at: DateTime.t() | nil
}

Functions

build(map_or_kwlist, opts \\ [])

@spec build(ExConstructor.map_or_kwlist(), Keyword.t()) ::
  %Humaans.Resources.TimeAwayAllocation{
    amount: term(),
    created_at: term(),
    end_date: term(),
    id: term(),
    person_id: term(),
    start_date: term(),
    time_away_policy_id: term(),
    time_away_type_id: term(),
    unit: term(),
    updated_at: term()
  }

new(data)