class PokeApi::Pokedex::PokemonEntry

Pokdex object handling all data fetched from /pokedex

Attributes

entry_number[R]
pokemon_species[R]

Public Class Methods

new(data) click to toggle source
# File lib/poke_api/pokedex/pokemon_entry.rb, line 8
def initialize(data)
  @entry_number = data[:entry_number]
  @pokemon_species = PokemonSpecies.new(data[:pokemon_species])
end