module

PokeAPI::Utility

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

Instance methods

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

Source