godfist v0.2.1 Godfist.DataDragon

Module to interact with the static data provided by Data Dragon instead of the default one by Riot.

The names provided for champions in this Module are case sensitive because of the way that Data Dragon handles it’s files. For now it’s up to you to get the champion’s names correctly.

Link to this section Summary

Functions

Get an ability from a champion by it’s name

Get a champion loading screen art by it’s name and splash id

Get champion splash arts by name and splash art number

Get the square image of a champion by it’s name and splash id

Get an item by it’s id

Get a mastery by it’s id

Get a passive ability

Get image of a profile icon by it’s id

Get a rune by it’s id

Get summoner spells

Link to this section Functions

Get an ability from a champion by it’s name.

Refer to passive/1 on how to get spell name.

Example

iex> Godfist.DataDragon.ability("FlashFrost")
Link to this function champ_loading(name, number)

Get a champion loading screen art by it’s name and splash id.

Example

iex> Godfist.DataDragon.champ_loading("LeeSin", 1)
Link to this function champ_splash(name, number)

Get champion splash arts by name and splash art number.

Example

iex> Godfist.DataDragon.champ_splash("Aatrox", 0)
Link to this function champ_square(name)

Get the square image of a champion by it’s name and splash id.

Example

iex> Godfist.DataDragon.champ_square("Rek Sai")

Get an item by it’s id.

Example

iex> Godfist.DataDragon.item(1001)

Get a mastery by it’s id.

Example

iex> Godfist.DataDragon.mastery(6111)

Get a passive ability.

Note: For now I can take care of spaces and punctuation but the name itself has to be written correctly(case sensitive) otherwise Data Dragon will return a 404 since I don’t exactly know how their files are handled. I.E. In the URL you can have RekSai (which is valid) but KhaZix is not valid, instead is Khazix so please, case sensitive until I find a way to make this simpler.

Example

iex> Godfist.DataDragon.get_passive("Lee Sin")
Link to this function profile_icon(id)

Get image of a profile icon by it’s id.

Example

iex> Godfist.DataDragon.profile_icon(588)

Get a rune by it’s id.

Example

iex> Godfist.DataDragon.rune(8001)
Link to this function summ_spell(name)

Get summoner spells.

Example

iex> Godfist.DataDragon.summ_spell("Heal")