Class: MtgApi::Card

Inherits:
RequestEntity show all
Defined in:
lib/mtg_api/card.rb

Overview

represents a card in MtG

Instance Method Summary collapse

Methods inherited from RequestEntity

#attributes, configure, #initialize

Constructor Details

This class inherits a constructor from MtgApi::RequestEntity

Instance Method Details

#setObject

the set that this card corresponds to



20
21
22
# File 'lib/mtg_api/card.rb', line 20

def set
  Set.where(code: @set).first
end