class PokeApi::Nature::MoveBattleStylePreference

MoveBattleStylePreference object handling all data fetched from /nature move_battle_style_preferences

Attributes

high_hp_preference[R]
low_hp_preference[R]
move_battle_style[R]

Public Class Methods

new(data) click to toggle source
# File lib/poke_api/nature/move_battle_style_preference.rb, line 10
def initialize(data)
  @low_hp_preference = data[:low_hp_preference]
  @high_hp_preference = data[:high_hp_preference]
  @move_battle_style = MoveBattleStyle.new(data[:move_battle_style])
end