class PokeApi::Item
Item
object handling all data fetched from /item
Attributes
attributes[R]
baby_trigger_for[R]
category[R]
cost[R]
effect_entries[R]
flavor_text_entries[R]
fling_effect[R]
fling_power[R]
game_indices[R]
held_by_pokemon[R]
machines[R]
names[R]
sprites[R]
Public Class Methods
new(data)
click to toggle source
# File lib/poke_api/item.rb, line 18 def initialize(data) assign_data(data) end
Private Instance Methods
custom_endpoint_object()
click to toggle source
# File lib/poke_api/item.rb, line 24 def custom_endpoint_object { attributes: ItemAttribute, baby_trigger_for: EvolutionChain, category: ItemCategory, effect_entries: Common::VerboseEffect, flavor_text_entries: Common::VersionGroupFlavorText, fling_effect: ItemFlingEffect, game_indices: Common::GenerationGameIndex, held_by_pokemon: Item::ItemHolderPokemon, machines: Common::MachineVersionDetail, sprites: ItemSprites } end