Class: PokeApi::Gender
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::Gender
- Defined in:
- lib/poke_api/gender.rb,
lib/poke_api/gender/pokemon_species_gender.rb
Overview
Gender object handling all data fetched from /gender
Defined Under Namespace
Classes: PokemonSpeciesGender
Instance Attribute Summary collapse
-
#pokemon_species_details ⇒ Object
readonly
Returns the value of attribute pokemon_species_details.
-
#required_for_evolution ⇒ Object
readonly
Returns the value of attribute required_for_evolution.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ Gender
constructor
A new instance of Gender.
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) ⇒ Gender
Returns a new instance of Gender.
7 8 9 |
# File 'lib/poke_api/gender.rb', line 7 def initialize(data) assign_data(data) end |
Instance Attribute Details
#pokemon_species_details ⇒ Object (readonly)
Returns the value of attribute pokemon_species_details.
4 5 6 |
# File 'lib/poke_api/gender.rb', line 4 def pokemon_species_details @pokemon_species_details end |
#required_for_evolution ⇒ Object (readonly)
Returns the value of attribute required_for_evolution.
4 5 6 |
# File 'lib/poke_api/gender.rb', line 4 def required_for_evolution @required_for_evolution end |