2018-01-30 04:43:36 +00:00
|
|
|
from .scryfall_object import ScryfallObject
|
2018-01-11 03:04:03 +00:00
|
|
|
|
2018-01-30 03:54:20 +00:00
|
|
|
class Collector(ScryfallObject):
|
2018-01-11 03:07:15 +00:00
|
|
|
""" cards/:code/:collector_number
|
2018-01-11 03:04:03 +00:00
|
|
|
|
|
|
|
Parameters:
|
2018-01-30 03:54:20 +00:00
|
|
|
code: str The 3 or 4 letter set code.
|
2018-01-11 03:04:03 +00:00
|
|
|
collector_number: int The collector number of the card.
|
|
|
|
"""
|
|
|
|
|
2018-01-30 03:54:20 +00:00
|
|
|
def __init__(self, **kwargs):
|
|
|
|
self.code = kwargs.get('code')
|
|
|
|
self.collector_number = kwargs.get('collector_number')
|
|
|
|
self.url = 'cards/{}/{}'.format(self.code, str(self.collector_number))
|
|
|
|
super(Collector, self).__init__(self.url)
|