Sha256: b9e18dce34b8af2cd1870986386e4300ee9f48d25af04adec4e25f4c9162a303
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
require 'roar/json' require 'roar/coercion' require_relative 'legality_representer' require_relative 'foreign_name_representer' require_relative 'ruling_representer' require_relative '../legality' require_relative '../foreign_name' require_relative '../ruling' module MTG module CardRepresenter include Roar::JSON include Roar::Coercion property :name property :layout property :mana_cost, as: :manaCost property :cmc property :type property :rarity property :text property :flavor property :artist property :number property :power property :toughness property :loyalty property :multiverse_id, as: :multiverseid property :watermark property :border property :timeshifted property :hand property :life property :reserved property :release_date, as: :releaseDate, type: Date property :starter property :original_text, as: :originalText property :original_type, as: :originalType property :source property :set property :id property :image_url, as: :imageUrl collection :names collection :supertypes collection :subtypes collection :types collection :colors collection :variations collection :printings collection :legalities, extend: LegalityRepresenter, class: Legality collection :rulings, extend: RulingRepresenter, class: Ruling collection :foreign_names, as: :foreignNames, extend: ForeignNameRepresenter, class: ForeignName end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mtg_sdk-2.1.0 | lib/mtg_sdk/representers/card_representer.rb |
mtg_sdk-2.0.1 | lib/mtg_sdk/representers/card_representer.rb |