Class: PokeApi::PokemonSpecies

Inherits:
NamedApiResource show all
Defined in:
lib/poke_api/pokemon_species.rb,
lib/poke_api/pokemon_species/genus.rb,
lib/poke_api/pokemon_species/pal_park_encounter_area.rb,
lib/poke_api/pokemon_species/pokemon_species_variety.rb,
lib/poke_api/pokemon_species/pokemon_species_dex_entry.rb

Overview

PokemonSpecies object handling all data fetched from /pokemon-species

Defined Under Namespace

Classes: Genus, PalParkEncounterArea, PokemonSpeciesDexEntry, PokemonSpeciesVariety

Instance Attribute Summary collapse

Attributes inherited from NamedApiResource

#id, #name, #url

Instance Method Summary collapse

Methods inherited from NamedApiResource

#get

Methods included from AssignmentHelpers

assign_list, custom_endpoint_object, endpoint_assignment, get_named_api_resource_from_url, try_to_assign

Constructor Details

#initialize(data) ⇒ PokemonSpecies

Returns a new instance of PokemonSpecies.



28
29
30
# File 'lib/poke_api/pokemon_species.rb', line 28

def initialize(data)
  assign_data(data)
end

Instance Attribute Details

#base_happinessObject (readonly)

Returns the value of attribute base_happiness.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def base_happiness
  @base_happiness
end

#capture_rateObject (readonly)

Returns the value of attribute capture_rate.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def capture_rate
  @capture_rate
end

#colorObject (readonly)

Returns the value of attribute color.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def color
  @color
end

#egg_groupsObject (readonly)

Returns the value of attribute egg_groups.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def egg_groups
  @egg_groups
end

#evolution_chainObject (readonly)

Returns the value of attribute evolution_chain.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def evolution_chain
  @evolution_chain
end

#evolves_from_speciesObject (readonly)

Returns the value of attribute evolves_from_species.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def evolves_from_species
  @evolves_from_species
end

#flavor_text_entriesObject (readonly)

Returns the value of attribute flavor_text_entries.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def flavor_text_entries
  @flavor_text_entries
end

#form_descriptionsObject (readonly)

Returns the value of attribute form_descriptions.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def form_descriptions
  @form_descriptions
end

#forms_switchableObject (readonly)

Returns the value of attribute forms_switchable.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def forms_switchable
  @forms_switchable
end

#gender_rateObject (readonly)

Returns the value of attribute gender_rate.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def gender_rate
  @gender_rate
end

#generaObject (readonly)

Returns the value of attribute genera.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def genera
  @genera
end

#generationObject (readonly)

Returns the value of attribute generation.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def generation
  @generation
end

#growth_rateObject (readonly)

Returns the value of attribute growth_rate.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def growth_rate
  @growth_rate
end

#habitatObject (readonly)

Returns the value of attribute habitat.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def habitat
  @habitat
end

#has_gender_differencesObject (readonly)

Returns the value of attribute has_gender_differences.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def has_gender_differences
  @has_gender_differences
end

#hatch_counterObject (readonly)

Returns the value of attribute hatch_counter.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def hatch_counter
  @hatch_counter
end

#is_babyObject (readonly)

Returns the value of attribute is_baby.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def is_baby
  @is_baby
end

#namesObject (readonly)

Returns the value of attribute names.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def names
  @names
end

#orderObject (readonly)

Returns the value of attribute order.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def order
  @order
end

#pal_park_encountersObject (readonly)

Returns the value of attribute pal_park_encounters.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def pal_park_encounters
  @pal_park_encounters
end

#pokedex_numbersObject (readonly)

Returns the value of attribute pokedex_numbers.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def pokedex_numbers
  @pokedex_numbers
end

#shapeObject (readonly)

Returns the value of attribute shape.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def shape
  @shape
end

#varietiesObject (readonly)

Returns the value of attribute varieties.



4
5
6
# File 'lib/poke_api/pokemon_species.rb', line 4

def varieties
  @varieties
end