class PokeApi::Type::TypePokemon

TypePokemon object handling slot and pokemon data

Attributes

pokemon[R]
slot[R]

Public Class Methods

new(data) click to toggle source
# File lib/poke_api/type/type_pokemon.rb, line 8
def initialize(data)
  @pokemon = Pokemon.new(data[:pokemon])
  @slot = data[:slot]
end