Class: PokeApi::Gender::PokemonSpeciesGender
- Inherits:
-
Object
- Object
- PokeApi::Gender::PokemonSpeciesGender
- Defined in:
- lib/poke_api/gender/pokemon_species_gender.rb
Overview
PokemonSpeciesGender object handling details data regarding pokemon evolutions
Instance Attribute Summary collapse
-
#pokemon_species ⇒ Object
readonly
Returns the value of attribute pokemon_species.
-
#rate ⇒ Object
readonly
Returns the value of attribute rate.
Instance Method Summary collapse
-
#initialize(data) ⇒ PokemonSpeciesGender
constructor
A new instance of PokemonSpeciesGender.
Constructor Details
#initialize(data) ⇒ PokemonSpeciesGender
Returns a new instance of PokemonSpeciesGender.
8 9 10 11 |
# File 'lib/poke_api/gender/pokemon_species_gender.rb', line 8 def initialize(data) @rate = data[:rate] @pokemon_species = PokemonSpecies.new(data[:pokemon_species]) end |
Instance Attribute Details
#pokemon_species ⇒ Object (readonly)
Returns the value of attribute pokemon_species.
5 6 7 |
# File 'lib/poke_api/gender/pokemon_species_gender.rb', line 5 def pokemon_species @pokemon_species end |
#rate ⇒ Object (readonly)
Returns the value of attribute rate.
5 6 7 |
# File 'lib/poke_api/gender/pokemon_species_gender.rb', line 5 def rate @rate end |