Class: PokeApi::GrowthRate
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::GrowthRate
- Defined in:
- lib/poke_api/growth_rate.rb,
lib/poke_api/growth_rate/growth_rate_experience_level.rb
Overview
GrowthRate object handling all data fetched from /growth-rate
Defined Under Namespace
Classes: GrowthRateExperienceLevel
Instance Attribute Summary collapse
-
#descriptions ⇒ Object
readonly
Returns the value of attribute descriptions.
-
#formula ⇒ Object
readonly
Returns the value of attribute formula.
-
#levels ⇒ Object
readonly
Returns the value of attribute levels.
-
#pokemon_species ⇒ Object
readonly
Returns the value of attribute pokemon_species.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ GrowthRate
constructor
A new instance of GrowthRate.
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) ⇒ GrowthRate
Returns a new instance of GrowthRate.
9 10 11 |
# File 'lib/poke_api/growth_rate.rb', line 9 def initialize(data) assign_data(data) end |
Instance Attribute Details
#descriptions ⇒ Object (readonly)
Returns the value of attribute descriptions.
4 5 6 |
# File 'lib/poke_api/growth_rate.rb', line 4 def descriptions @descriptions end |
#formula ⇒ Object (readonly)
Returns the value of attribute formula.
4 5 6 |
# File 'lib/poke_api/growth_rate.rb', line 4 def formula @formula end |
#levels ⇒ Object (readonly)
Returns the value of attribute levels.
4 5 6 |
# File 'lib/poke_api/growth_rate.rb', line 4 def levels @levels end |
#pokemon_species ⇒ Object (readonly)
Returns the value of attribute pokemon_species.
4 5 6 |
# File 'lib/poke_api/growth_rate.rb', line 4 def pokemon_species @pokemon_species end |