2018-02-07 03:01:08 +00:00
|
|
|
from .cards_object import CardsObject
|
2018-01-11 03:04:03 +00:00
|
|
|
|
2018-02-07 03:01:08 +00:00
|
|
|
class Collector(CardsObject):
|
2018-01-30 03:54:20 +00:00
|
|
|
def __init__(self, **kwargs):
|
2018-02-13 21:51:03 +00:00
|
|
|
if kwargs.get('code') is None:
|
|
|
|
raise TypeError('No code provided to search by')
|
|
|
|
|
2018-02-14 02:02:48 +00:00
|
|
|
self.url = 'cards/{}/{}?'.format(kwargs.get('code'), str(kwargs.get('collector_number')))
|
2018-01-30 03:54:20 +00:00
|
|
|
super(Collector, self).__init__(self.url)
|