Class: PokeApi::PokeathlonStat
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::PokeathlonStat
- Defined in:
- lib/poke_api/pokeathlon_stat.rb,
lib/poke_api/pokeathlon_stat/nature_pokeathlon_stat_affect.rb,
lib/poke_api/pokeathlon_stat/nature_pokeathlon_stat_affect_sets.rb
Overview
PokeathlonStat object handling all data fetched from /pokeathlon-stat
Defined Under Namespace
Classes: NaturePokeathlonStatAffect, NaturePokeathlonStatAffectSets
Instance Attribute Summary collapse
-
#affecting_natures ⇒ Object
readonly
Returns the value of attribute affecting_natures.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ PokeathlonStat
constructor
A new instance of PokeathlonStat.
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) ⇒ PokeathlonStat
Returns a new instance of PokeathlonStat.
7 8 9 |
# File 'lib/poke_api/pokeathlon_stat.rb', line 7 def initialize(data) assign_data(data) end |
Instance Attribute Details
#affecting_natures ⇒ Object (readonly)
Returns the value of attribute affecting_natures.
4 5 6 |
# File 'lib/poke_api/pokeathlon_stat.rb', line 4 def affecting_natures @affecting_natures end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
4 5 6 |
# File 'lib/poke_api/pokeathlon_stat.rb', line 4 def names @names end |