godfist v0.5.0 Godfist.Champion

Module to interact with the Champions endpoint

Link to this section Summary

Functions

Get a list of all champions

Get a single champion by id

Link to this section Functions

Link to this function all(region, opts \\ [])
all(atom, Keyword.t) :: {:ok, map} | {:error, String.t}

Get a list of all champions.

Options are:

  • :ftp, Filter Free to play champions.

Example

iex> Godfist.Champion.all(:lan, ftp: true)
Link to this function by_id(region, id)
by_id(atom, integer) :: {:ok, map} | {:error, String.t}

Get a single champion by id.

Example

iex> Godfist.Champion.by_id(:na, 64)