class Oakdex::Pokedex::Move

Represents the move of a Pokemon

Public Instance Methods

description(lang = 'en') click to toggle source
# File lib/oakdex/pokedex/move.rb, line 22
def description(lang = 'en')
  @attributes['pokedex_entries'].values.last[lang] ||
    @attributes['pokedex_entries'].values.last['en']
end
in_battle_properties() click to toggle source
# File lib/oakdex/pokedex/move.rb, line 18
def in_battle_properties
  @attributes['in_battle_properties'] || {}
end
pp() click to toggle source
# File lib/oakdex/pokedex/move.rb, line 10
def pp
  @attributes['pp']
end
stat_modifiers() click to toggle source
# File lib/oakdex/pokedex/move.rb, line 14
def stat_modifiers
  @attributes['stat_modifiers'] || []
end