CodestatsAPI.Stats.Machines (codestats_api v0.3.0)

View Source

Map of machine names to XP.

Example: %{

"MacBook Pro (20-inch, 2030)": %{
  new_xps: 100,
  xps: 464413
},
"Lenovo yoba": %{
  new_xps: 0,
  xps: 500
}

}

Summary

Functions

Parses the machines from the user's data from the Code::Stats API.

Types

t()

@type t() :: %{
  required(String.t()) => %{
    new_xps: CodestatsAPI.Stats.Xp.t(),
    xps: CodestatsAPI.Stats.Xp.t()
  }
}

Functions

parse(input)

@spec parse(map()) :: t()

Parses the machines from the user's data from the Code::Stats API.