class PokeApi::Move

Move object handling all data fetched from /move

Attributes

accuracy[R]
contest_combos[R]
contest_effect[R]
contest_type[R]
damage_class[R]
effect_chance[R]
effect_changes[R]
effect_entries[R]
flavor_text_entries[R]
generation[R]
machines[R]
meta[R]
names[R]
past_values[R]
power[R]
pp[R]
priority[R]
stat_changes[R]
super_contest_effect[R]
target[R]
type[R]

Public Class Methods

new(data) click to toggle source
# File lib/poke_api/move.rb, line 26
def initialize(data)
  assign_data(data)
end

Private Instance Methods

custom_endpoint_object() click to toggle source
# File lib/poke_api/move.rb, line 32
def custom_endpoint_object
  {
    contest_combos: ContestComboSets,
    damage_class: MoveDamageClass,
    effect_entries: Common::VerboseEffect,
    flavor_text_entries: MoveFlavorText,
    meta: MoveMetaData,
    past_values: PastMoveStatValue,
    stat_changes: MoveStatChange,
    target: MoveTarget
  }
end