module PokeAPI

Overview

PokeAPI is a wrapper library for PokéAPI

Extended Modules

Defined in:

pokeapi.cr
pokeapi/client.cr
pokeapi/error.cr
pokeapi/version.cr

Constant Summary

CACHE = Cache.new
VERSION = "0.3.1"

Class Method Summary

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)

[View source]