Sha256: 81c1bf22328897ed8f4d6009145fa5c822b85336ce8754922d62ceb202da80a1
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
class Pokemon def initialize(hash) @name = hash[:name] @type_1 = hash[:type_1] @type_2 = hash[:type_2] @total = hash[:total] @hp = hash[:hp] @attack = hash[:attack] @defense = hash[:defense] @sp_atk = hash[:"sp._atk"] @sp_def = hash[:"sp._def"] @speed = hash[:speed] @generation = hash[:generation] @legendary = hash[:legendary] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pokedex-terminal-0.1.1 | lib/pokedex/classes/Pokemon.rb |