class PokeApi::ItemCategory

ItemCategory object handling all data fetched from /item-category

Attributes

items[R]
names[R]
pocket[R]

Public Class Methods

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

Private Instance Methods

custom_endpoint_object() click to toggle source
# File lib/poke_api/item_category.rb, line 14
def custom_endpoint_object
  { pocket: ItemPocket }
end