class Pokemon::Resistance

Attributes

type[RW]
value[RW]

Public Class Methods

from_json(json) click to toggle source
# File lib/pokemon_tcg_sdk/resistance.rb, line 5
def self.from_json(json)
  resistance = Resistance.new
  resistance.type = json['type']
  resistance.value = json['value']

  resistance
end