module PokeAPI
Overview
PokeAPI
is a wrapper library for PokéAPI
Extended Modules
- PokeAPI::Berries
- PokeAPI::Contests
- PokeAPI::Encounters
- PokeAPI::Evolution
- PokeAPI::Games
- PokeAPI::Items
- PokeAPI::Locations
- PokeAPI::Machines
- PokeAPI::Moves
- PokeAPI::Pokemon
- PokeAPI::Utility
Defined in:
pokeapi.crpokeapi/client.cr
pokeapi/error.cr
pokeapi/version.cr
Constant Summary
-
CACHE =
Cache.new
-
VERSION =
"0.3.1"
Class Method Summary
-
.resource(endpoint : String, limit : UInt32 = 20, offset : UInt32 = 0) : Types::ResourceList
Returns a list of items from the given endpoint.
Class Method Detail
def self.resource(endpoint : String, limit : UInt32 = 20, offset : UInt32 = 0) : Types::ResourceList
#
Returns a list of items from the given endpoint.
Example:
require "pokeapi"
genders = PokeAPI.resource("gender")
pokemons = PokeAPI.resource("pokemon", limit: 5, offset: 100)