class PokeApi::EvolutionChain

EvolutionChain object handling all data fetched from /evolution-chain

Attributes

baby_trigger_item[R]
chain[R]

Public Class Methods

new(data) click to toggle source
# File lib/poke_api/evolution_chain.rb, line 7
def initialize(data)
  assign_data(data)
end

Private Instance Methods

custom_endpoint_object() click to toggle source
# File lib/poke_api/evolution_chain.rb, line 30
def custom_endpoint_object
  {
    baby_trigger_item: Item,
    chain: ChainLink
  }
end