rdavid1099 / poke-api-v2

Ruby gem wrapper for https://pokeapi.co/api/v2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to fetch multiple objects with a single `PokeApi#get` call

rdavid1099 opened this issue · comments

PokeApi#get should be able to take multiple NamedApiResource queries and return a list of the results.

Ex:

PokeApi.get(pokemon: 'pikachu', item: 'potion', pokemon_species: 151)
# => [ <PokeApi::Pokemon .....>, <PokeApi::Item......>, <PokeApi::PokemonSpecies.....>]