Class: PokeApi::PokemonSpecies
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::PokemonSpecies
- 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
-
#base_happiness ⇒ Object
readonly
Returns the value of attribute base_happiness.
-
#capture_rate ⇒ Object
readonly
Returns the value of attribute capture_rate.
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#egg_groups ⇒ Object
readonly
Returns the value of attribute egg_groups.
-
#evolution_chain ⇒ Object
readonly
Returns the value of attribute evolution_chain.
-
#evolves_from_species ⇒ Object
readonly
Returns the value of attribute evolves_from_species.
-
#flavor_text_entries ⇒ Object
readonly
Returns the value of attribute flavor_text_entries.
-
#form_descriptions ⇒ Object
readonly
Returns the value of attribute form_descriptions.
-
#forms_switchable ⇒ Object
readonly
Returns the value of attribute forms_switchable.
-
#gender_rate ⇒ Object
readonly
Returns the value of attribute gender_rate.
-
#genera ⇒ Object
readonly
Returns the value of attribute genera.
-
#generation ⇒ Object
readonly
Returns the value of attribute generation.
-
#growth_rate ⇒ Object
readonly
Returns the value of attribute growth_rate.
-
#habitat ⇒ Object
readonly
Returns the value of attribute habitat.
-
#has_gender_differences ⇒ Object
readonly
Returns the value of attribute has_gender_differences.
-
#hatch_counter ⇒ Object
readonly
Returns the value of attribute hatch_counter.
-
#is_baby ⇒ Object
readonly
Returns the value of attribute is_baby.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#pal_park_encounters ⇒ Object
readonly
Returns the value of attribute pal_park_encounters.
-
#pokedex_numbers ⇒ Object
readonly
Returns the value of attribute pokedex_numbers.
-
#shape ⇒ Object
readonly
Returns the value of attribute shape.
-
#varieties ⇒ Object
readonly
Returns the value of attribute varieties.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ PokemonSpecies
constructor
A new instance of PokemonSpecies.
Methods inherited from NamedApiResource
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_happiness ⇒ Object (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_rate ⇒ Object (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 |
#color ⇒ Object (readonly)
Returns the value of attribute color.
4 5 6 |
# File 'lib/poke_api/pokemon_species.rb', line 4 def color @color end |
#egg_groups ⇒ Object (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_chain ⇒ Object (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_species ⇒ Object (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_entries ⇒ Object (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_descriptions ⇒ Object (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_switchable ⇒ Object (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_rate ⇒ Object (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 |
#genera ⇒ Object (readonly)
Returns the value of attribute genera.
4 5 6 |
# File 'lib/poke_api/pokemon_species.rb', line 4 def genera @genera end |
#generation ⇒ Object (readonly)
Returns the value of attribute generation.
4 5 6 |
# File 'lib/poke_api/pokemon_species.rb', line 4 def generation @generation end |
#growth_rate ⇒ Object (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 |
#habitat ⇒ Object (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_differences ⇒ Object (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_counter ⇒ Object (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_baby ⇒ Object (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 |
#names ⇒ Object (readonly)
Returns the value of attribute names.
4 5 6 |
# File 'lib/poke_api/pokemon_species.rb', line 4 def names @names end |
#order ⇒ Object (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_encounters ⇒ Object (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_numbers ⇒ Object (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 |
#shape ⇒ Object (readonly)
Returns the value of attribute shape.
4 5 6 |
# File 'lib/poke_api/pokemon_species.rb', line 4 def shape @shape end |
#varieties ⇒ Object (readonly)
Returns the value of attribute varieties.
4 5 6 |
# File 'lib/poke_api/pokemon_species.rb', line 4 def varieties @varieties end |