class PokeApi::Pokemon::PokemonType
PokemonType
object handling all data fetched from /pokemon types
Attributes
slot[R]
type[R]
Public Class Methods
new(data)
click to toggle source
# File lib/poke_api/pokemon/pokemon_type.rb, line 8 def initialize(data) @slot = data[:slot] @type = Type.new(data[:type]) end