Class: PokeAPI::Species

Inherits:
Base
  • Object
show all
Defined in:
lib/pokeapi/species.rb

Instance Method Summary collapse

Instance Method Details

#evolution_chainObject



10
11
12
13
14
15
# File 'lib/pokeapi/species.rb', line 10

def evolution_chain
  @evolution_chain ||= begin
                         response = Requester.evolution_chain(evolution_chain_id)
                         EvolutionChain.new(response)
                       end
end