MagicTheGathering/mtg-sdk-ruby

View on GitHub
lib/mtg_sdk/representers/set_representer.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'roar/json'

module MTG
  module SetRepresenter
    include Roar::JSON
  
    property :code
    property :name
    property :type
    property :border
    property :mkm_id
    property :mkm_name
    property :block
    property :old_code, as: :oldCode
    property :online_only, as: :onlineOnly
    property :release_date, as: :releaseDate
    property :gatherer_code, as: :gatherCode
    property :magic_cards_info_code, as: :magicCardsInfoCode
    
    collection :booster
  end
end