class PokeApi::Nature
Nature
object handling all data fetched from /nature
Attributes
decreased_stat[R]
hates_flavor[R]
increased_stat[R]
likes_flavor[R]
move_battle_style_preferences[R]
names[R]
pokeathlon_stat_changes[R]
Public Class Methods
new(data)
click to toggle source
# File lib/poke_api/nature.rb, line 12 def initialize(data) assign_data(data) end
Private Instance Methods
custom_endpoint_object()
click to toggle source
# File lib/poke_api/nature.rb, line 18 def custom_endpoint_object { decreased_stat: Stat, increased_stat: Stat, pokeathlon_stat_changes: NatureStatChange, move_battle_style_preferences: MoveBattleStylePreference, likes_flavor: BerryFlavor, hates_flavor: BerryFlavor } end