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