class Pokemon::Attack

Attributes

converted_energy_cost[RW]
cost[RW]
damage[RW]
name[RW]
text[RW]

Public Class Methods

from_json(json) click to toggle source
# File lib/pokemon_tcg_sdk/attack.rb, line 5
def self.from_json(json)
  attack = Attack.new
  attack.cost = json['cost']
  attack.name = json['name']
  attack.text = json['text']
  attack.damage = json['damage']
  attack.converted_energy_cost = json['convertedEnergyCost']

  attack
end