module

PokeAPI

PokeAPI is a wrapper library for PokéAPI

Constants

CACHE = Cache.new
VERSION = "0.3.1"

Class methods

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)
Source

Nested types