elixir_leaderboard v0.1.5 ElixirLeaderboard.Record View Source
Record is the tuple-based structure that you get back when querying a leaderboard. In addition to the stored entry it also carries stats like rank and percentile.
Link to this section Summary
Types
Any entry stats returned by the indexer
Any rank stats returned by the indexer
This is how each record comes back to you from the leaderboard. See below for breakdowns of each type
Link to this section Types
Link to this type
entry_stats()
View Source
entry_stats()
View Source
entry_stats() :: term()
entry_stats() :: term()
Any entry stats returned by the indexer.
Link to this type
rank_stats()
View Source
rank_stats()
View Source
rank_stats() :: term()
rank_stats() :: term()
Any rank stats returned by the indexer
Link to this type
t()
View Source
t()
View Source
t() ::
{ElixirLeaderboard.Entry.key(), ElixirLeaderboard.Entry.payload(),
{entry_stats(), rank_stats()}}
t() :: {ElixirLeaderboard.Entry.key(), ElixirLeaderboard.Entry.payload(), {entry_stats(), rank_stats()}}
This is how each record comes back to you from the leaderboard. See below for breakdowns of each type.
Link to this section Functions
Link to this function
get_entry(arg) View Source
Link to this function