module PokeAPI::Utility

Overview

The PokeAPI::Utility module contains methods to get data from the different endpoints in the Utility group.

NOTE see https://pokeapi.co/docs/v2#utility-section

Defined in:

pokeapi/utility.cr

Instance Method Summary

Instance Method Detail

def language(identifier : String | UInt32) : PokeAPI::Types::Language #

Returns a PokeAPI::Types::Language based on the given identifier. The identifier can be either the id or the name of the desired language.

An ArgumentError is raised if the identifier is an empty string or 0


[View source]