Current section
Files
Jump to
Current section
Files
lib/pokerap.ex
defmodule Pokerap do
@moduledoc """
Pokerap: This is the main module that you'll find all of the methods to
call resources from the Pokeapi http://pokeapi.co/
"""
require Pokerap.Macro
# Macro to define functions for generic endpoints
["berry", "berry_firmness", "berry_flavor", "contest_type",
"contest_effect", "super_contest_effect", "encounter_method",
"encounter_condition", "encounter_condition_value", "evolution_chain",
"evolution_trigger", "generation", "pokedex", "version", "version_group",
"item", "item_attribute", "item_category", "item_fling_effect",
"item_pocket", "machine", "move", "move_ailment", "move_battle_style",
"move_category", "move_damage_class", "move_learn_method", "move_target",
"location", "location_area", "pal_park_area", "region", "ability",
"characteristic", "egg_group", "gender", "growth_rate", "nature",
"pokeathlon_stat", "pokemon", "pokemon_color", "pokemon_form",
"pokemon_habitat", "pokemon_shape", "pokemon_species", "stat",
"type", "language"]
|> Pokerap.Macro.make_endpoint_calls
end