class PokeApi::PokemonSpecies

PokemonSpecies object handling all data fetched from /pokemon-species

Attributes

base_happiness[R]
capture_rate[R]
color[R]
egg_groups[R]
evolution_chain[R]
evolves_from_species[R]
flavor_text_entries[R]
form_descriptions[R]
forms_switchable[R]
gender_rate[R]
genera[R]
generation[R]
growth_rate[R]
habitat[R]
has_gender_differences[R]
hatch_counter[R]
is_baby[R]
names[R]
order[R]
pal_park_encounters[R]
pokedex_numbers[R]
shape[R]
varieties[R]

Public Class Methods

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

Private Instance Methods

custom_endpoint_object() click to toggle source
# File lib/poke_api/pokemon_species.rb, line 34
def custom_endpoint_object
  {
    color: PokemonColor,
    pokedex_numbers: PokemonSpeciesDexEntry,
    evolves_from_species: PokemonSpecies,
    pal_park_encounters: PalParkEncounterArea,
    flavor_text_entries: Common::FlavorText,
    form_descriptions: Common::Description,
    genera: Genus,
    habitat: PokemonHabitat,
    shape: PokemonShape,
    varieties: PokemonSpeciesVariety
  }
end