class Oakdex::Pokedex::Item
Represents the nature of a Pokemon
Public Instance Methods
description(locale = 'en')
click to toggle source
# File lib/oakdex/pokedex/item.rb, line 10 def description(locale = 'en') translations = descriptions.last['translations'] translations[locale] || translations['en'] end