Class: MtgApi::Card
- Inherits:
-
RequestEntity
- Object
- RequestEntity
- MtgApi::Card
- Defined in:
- lib/mtg_api/card.rb
Overview
represents a card in MtG
Instance Method Summary collapse
-
#set ⇒ Object
the set that this card corresponds to.
Methods inherited from RequestEntity
#attributes, configure, #initialize
Constructor Details
This class inherits a constructor from MtgApi::RequestEntity
Instance Method Details
#set ⇒ Object
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 |