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