class PokeApi::Type
Type
object handling all data fetched from /type
Attributes
damage_relations[R]
game_indices[R]
generation[R]
move[R]
move_damage_class[R]
names[R]
pokemon[R]
Public Class Methods
new(data)
click to toggle source
# File lib/poke_api/type.rb, line 12 def initialize(data) assign_data(data) end
Private Instance Methods
custom_endpoint_object()
click to toggle source
# File lib/poke_api/type.rb, line 18 def custom_endpoint_object { damage_relations: TypeRelations, game_indices: Common::GenerationGameIndex, pokemon: TypePokemon } end