View Source MaxElixirPokeApi.Behaviour behaviour (MaxElixirPokeApi v0.16.0)

Behaviour from MaxElixirPokeApi.

Link to this section Summary

Types

Identifier as {id or name} used in https://pokeapi.co/api/v2/{resource}/{id or name}/

Response from lib functions

Link to this section Types

@type id_or_name() :: String.t() | integer()

Identifier as {id or name} used in https://pokeapi.co/api/v2/{resource}/{id or name}/

@type response() :: {:ok, map()} | {:error, %{reason: String.t()}}

Response from lib functions

Link to this section Callbacks

@callback ability(id_or_name()) :: response()
@callback berry(id_or_name()) :: response()
Link to this callback

berry_firmness(id_or_name)

View Source
@callback berry_firmness(id_or_name()) :: response()
Link to this callback

berry_flavor(id_or_name)

View Source
@callback berry_flavor(id_or_name()) :: response()
@callback characteristic(integer()) :: response()
@callback contest_effect(integer()) :: response()
Link to this callback

contest_type(id_or_name)

View Source
@callback contest_type(id_or_name()) :: response()
@callback egg_group(id_or_name()) :: response()
Link to this callback

encounter_condition(id_or_name)

View Source
@callback encounter_condition(id_or_name()) :: response()
Link to this callback

encounter_condition_value(id_or_name)

View Source
@callback encounter_condition_value(id_or_name()) :: response()
Link to this callback

encounter_method(id_or_name)

View Source
@callback encounter_method(id_or_name()) :: response()
Link to this callback

evolution_chain(integer)

View Source
@callback evolution_chain(integer()) :: response()
Link to this callback

evolution_trigger(id_or_name)

View Source
@callback evolution_trigger(id_or_name()) :: response()
@callback gender(id_or_name()) :: response()
@callback generation(id_or_name()) :: response()
@callback growth_rate(id_or_name()) :: response()
@callback item(id_or_name()) :: response()
Link to this callback

item_attribute(id_or_name)

View Source
@callback item_attribute(id_or_name()) :: response()
Link to this callback

item_category(id_or_name)

View Source
@callback item_category(id_or_name()) :: response()
Link to this callback

item_fling_effect(id_or_name)

View Source
@callback item_fling_effect(id_or_name()) :: response()
@callback item_pocket(id_or_name()) :: response()
@callback language(id_or_name()) :: response()
@callback location(id_or_name()) :: response()
Link to this callback

location_area(id_or_name)

View Source
@callback location_area(id_or_name()) :: response()
@callback machine(integer()) :: response()
@callback move(id_or_name()) :: response()
Link to this callback

move_ailment(id_or_name)

View Source
@callback move_ailment(id_or_name()) :: response()
Link to this callback

move_battle_style(id_or_name)

View Source
@callback move_battle_style(id_or_name()) :: response()
Link to this callback

move_category(id_or_name)

View Source
@callback move_category(id_or_name()) :: response()
Link to this callback

move_damage_class(id_or_name)

View Source
@callback move_damage_class(id_or_name()) :: response()
Link to this callback

move_learn_method(id_or_name)

View Source
@callback move_learn_method(id_or_name()) :: response()
@callback move_target(id_or_name()) :: response()
@callback nature(id_or_name()) :: response()
Link to this callback

pal_park_area(id_or_name)

View Source
@callback pal_park_area(id_or_name()) :: response()
Link to this callback

pokeathlon_stat(id_or_name)

View Source
@callback pokeathlon_stat(id_or_name()) :: response()
@callback pokedex(id_or_name()) :: response()
@callback pokemon(id_or_name()) :: response()
Link to this callback

pokemon_color(id_or_name)

View Source
@callback pokemon_color(id_or_name()) :: response()
Link to this callback

pokemon_form(id_or_name)

View Source
@callback pokemon_form(id_or_name()) :: response()
Link to this callback

pokemon_habitat(id_or_name)

View Source
@callback pokemon_habitat(id_or_name()) :: response()
Link to this callback

pokemon_shape(id_or_name)

View Source
@callback pokemon_shape(id_or_name()) :: response()
Link to this callback

pokemon_species(id_or_name)

View Source
@callback pokemon_species(id_or_name()) :: response()
@callback region(id_or_name()) :: response()
Link to this callback

resource(atom, integer, integer)

View Source
@callback resource(atom(), integer(), integer()) :: response()
@callback stat(id_or_name()) :: response()
Link to this callback

super_contest_effect(integer)

View Source
@callback super_contest_effect(integer()) :: response()
@callback type(id_or_name()) :: response()
@callback version(id_or_name()) :: response()
Link to this callback

version_group(id_or_name)

View Source
@callback version_group(id_or_name()) :: response()