Class: PokeApi::GrowthRate

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

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) ⇒ 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

#descriptionsObject (readonly)

Returns the value of attribute descriptions.



4
5
6
# File 'lib/poke_api/growth_rate.rb', line 4

def descriptions
  @descriptions
end

#formulaObject (readonly)

Returns the value of attribute formula.



4
5
6
# File 'lib/poke_api/growth_rate.rb', line 4

def formula
  @formula
end

#levelsObject (readonly)

Returns the value of attribute levels.



4
5
6
# File 'lib/poke_api/growth_rate.rb', line 4

def levels
  @levels
end

#pokemon_speciesObject (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