Method: PokeAPI::Parser::Pokemon#parse

Defined in:
lib/pokeapi/parser/pokemon.rb

#parseObject



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/pokeapi/parser/pokemon.rb', line 21

def parse
  {
    id: @data[:id],
    name: @data[:name],
    abilities: abilities,
    moves: moves,
    types: types,
    stats: stats,
    thumbnail: @thumbnail,
    animated_thumbnail: @animated_thumbnail,
    species_id: @species_id,
  }
end