ExOsrsApi.Models.ActivityEntry (ExOsrsApi v0.1.0) View Source

Link to this section Summary

Link to this section Types

Specs

t() :: %ExOsrsApi.Models.ActivityEntry{
  actions: non_neg_integer() | nil,
  activity: String.t(),
  empty: boolean(),
  rank: 1..2_000_000 | nil
}

Link to this section Functions

Link to this function

is_empty?(activity_entry)

View Source

Specs

is_empty?(%ExOsrsApi.Models.ActivityEntry{
  actions: term(),
  activity: term(),
  empty: term(),
  rank: term()
}) :: boolean()
Link to this function

new_from_line(activity, line)

View Source

Specs

new_from_line(String.t(), String.t()) ::
  {:error, ExOsrsApi.Errors.Error.t()} | {:ok, t()}