Class: PokeApi::Gender

Inherits:
NamedApiResource show all
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

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) ⇒ 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_detailsObject (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_evolutionObject (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