Sha256: 72a2f521335c5868d14bc6a7f2effb83919c19c2a69f2bbd621146ba48cafea6
Contents?: true
Size: 262 Bytes
Versions: 8
Compression:
Stored size: 262 Bytes
Contents
module Pokemon class Ability attr_accessor :name, :text, :type def self.from_json(json) ability = Ability.new ability.name = json['name'] ability.text = json['text'] ability.type = json['type'] ability end end end
Version data entries
8 entries across 8 versions & 1 rubygems