module PokeAPI::Machines

Overview

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

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

Defined in:

pokeapi/machines.cr

Instance Method Summary

Instance Method Detail

def machine(id : UInt32) : PokeAPI::Types::Machine #

Returns a PokeAPI::Types::Machine based on the given id.

An ArgumentError is raised if the id is 0


[View source]