Class: MtgApi::Set

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

Overview

represents a set 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

#cardsObject

the cards that belong to this set



23
24
25
# File 'lib/mtg_api/set.rb', line 23

def cards
  Card.where(set: code)
end