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.crInstance Method Summary
-
#language(identifier : String | UInt32) : PokeAPI::Types::Language
Returns a
PokeAPI::Types::Languagebased on the given identifier.
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