Class: PokeApi::Nature
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::Nature
- Defined in:
- lib/poke_api/nature.rb,
lib/poke_api/nature/nature_stat_change.rb,
lib/poke_api/nature/move_battle_style_preference.rb
Overview
Nature object handling all data fetched from /nature
Defined Under Namespace
Classes: MoveBattleStylePreference, NatureStatChange
Instance Attribute Summary collapse
-
#decreased_stat ⇒ Object
readonly
Returns the value of attribute decreased_stat.
-
#hates_flavor ⇒ Object
readonly
Returns the value of attribute hates_flavor.
-
#increased_stat ⇒ Object
readonly
Returns the value of attribute increased_stat.
-
#likes_flavor ⇒ Object
readonly
Returns the value of attribute likes_flavor.
-
#move_battle_style_preferences ⇒ Object
readonly
Returns the value of attribute move_battle_style_preferences.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#pokeathlon_stat_changes ⇒ Object
readonly
Returns the value of attribute pokeathlon_stat_changes.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ Nature
constructor
A new instance of Nature.
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) ⇒ Nature
Returns a new instance of Nature.
12 13 14 |
# File 'lib/poke_api/nature.rb', line 12 def initialize(data) assign_data(data) end |
Instance Attribute Details
#decreased_stat ⇒ Object (readonly)
Returns the value of attribute decreased_stat.
4 5 6 |
# File 'lib/poke_api/nature.rb', line 4 def decreased_stat @decreased_stat end |
#hates_flavor ⇒ Object (readonly)
Returns the value of attribute hates_flavor.
4 5 6 |
# File 'lib/poke_api/nature.rb', line 4 def hates_flavor @hates_flavor end |
#increased_stat ⇒ Object (readonly)
Returns the value of attribute increased_stat.
4 5 6 |
# File 'lib/poke_api/nature.rb', line 4 def increased_stat @increased_stat end |
#likes_flavor ⇒ Object (readonly)
Returns the value of attribute likes_flavor.
4 5 6 |
# File 'lib/poke_api/nature.rb', line 4 def likes_flavor @likes_flavor end |
#move_battle_style_preferences ⇒ Object (readonly)
Returns the value of attribute move_battle_style_preferences.
4 5 6 |
# File 'lib/poke_api/nature.rb', line 4 def move_battle_style_preferences @move_battle_style_preferences end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
4 5 6 |
# File 'lib/poke_api/nature.rb', line 4 def names @names end |
#pokeathlon_stat_changes ⇒ Object (readonly)
Returns the value of attribute pokeathlon_stat_changes.
4 5 6 |
# File 'lib/poke_api/nature.rb', line 4 def pokeathlon_stat_changes @pokeathlon_stat_changes end |