class PokeApi::Move::PastMoveStatValue
PastMoveStatValue
object handling all data fetched from /move for past_values
Attributes
accuracy[R]
effect_chance[R]
effect_entries[R]
power[R]
pp[R]
type[R]
version_group[R]
Public Class Methods
new(data)
click to toggle source
# File lib/poke_api/move/past_move_stat_value.rb, line 15 def initialize(data) @accuracy = data[:accuracy] @effect_chance = data[:effect_chance] @power = data[:power] @pp = data[:pp] @effect_entries = assign_list(data: data[:effect_entries], klass: Common::VerboseEffect) @type = try_to_assign(data: data[:type], klass: Type) @version_group = try_to_assign(data: data[:version_group], klass: VersionGroup) end