Sha256: 87ad883a6256ca3e24bf33dabbb6ed5e91ed0c0e0483891e54ad4ac326b4d504
Contents?: true
Size: 230 Bytes
Versions: 8
Compression:
Stored size: 230 Bytes
Contents
module Pokemon class Weakness attr_accessor :type, :value def self.from_json(json) weakness = Weakness.new weakness.type = json['type'] weakness.value = json['value'] weakness end end end
Version data entries
8 entries across 8 versions & 1 rubygems