Class: PokeApi::Gender::PokemonSpeciesGender

Inherits:
Object
  • Object
show all
Defined in:
lib/poke_api/gender/pokemon_species_gender.rb

Overview

PokemonSpeciesGender object handling details data regarding pokemon evolutions

Instance Attribute Summary collapse

Instance Method Summary collapse

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_speciesObject (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

#rateObject (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