Sha256: 5717726456b5b36719f5629f26eb6ca3ba17e3a841f3f45828cbda97163d8d43
Contents?: true
Size: 960 Bytes
Versions: 2
Compression:
Stored size: 960 Bytes
Contents
require 'roar/json' require_relative 'attack_representer' require_relative 'type_value_representer' require_relative 'ability_representer' require_relative '../attack' require_relative '../type_value' require_relative '../ability' module Pokemon module CardRepresenter include Roar::JSON property :id property :name property :image_url, as: :imageUrl property :subtype property :supertype property :ability, extend: AbilityRepresenter, class: Ability property :hp property :number property :artist property :rarity property :series property :set property :set_code, as: :setCode collection :retreat_cost, as: :retreatCost collection :text collection :types collection :attacks, extend: AttackRepresenter, class: Attack collection :weaknesses, extend: TypeValueRepresenter, class: TypeValue collection :resistances, extend: TypeValueRepresenter, class: TypeValue end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pokemon_tcg_sdk-2.0.0 | lib/pokemon_tcg_sdk/representers/card_representer.rb |
pokemon_tcg_sdk-1.0.0 | lib/pokemon_tcg_sdk/representers/card_representer.rb |