Class: PokeApi::NamedApiResource
- Inherits:
-
Object
- Object
- PokeApi::NamedApiResource
- Includes:
- AssignmentHelpers
- Defined in:
- lib/poke_api/named_api_resource.rb
Overview
Base class with shared methods for all Named API Resources
Direct Known Subclasses
Ability, Berry, BerryFirmness, BerryFlavor, Characteristic, ContestEffect, ContestType, EggGroup, EncounterCondition, EncounterConditionValue, EncounterMethod, EvolutionChain, EvolutionTrigger, Gender, Generation, GrowthRate, Item, ItemAttribute, ItemCategory, ItemFlingEffect, ItemPocket, Location, LocationArea, Machine, Move, MoveAilment, MoveBattleStyle, MoveCategory, MoveDamageClass, MoveLearnMethod, MoveTarget, Nature, PalParkArea, PokeathlonStat, Pokedex, Pokemon, PokemonColor, PokemonForm, PokemonHabitat, PokemonShape, PokemonSpecies, Region, Stat, SuperContestEffect, Type, Utility::Language, Version, VersionGroup
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
Methods included from AssignmentHelpers
assign_list, custom_endpoint_object, endpoint_assignment, get_named_api_resource_from_url, try_to_assign
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/poke_api/named_api_resource.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/poke_api/named_api_resource.rb', line 6 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/poke_api/named_api_resource.rb', line 6 def url @url end |