2018-01-31 01:47:31 +00:00
|
|
|
from .rulings_object import RulingsObject
|
2018-01-31 01:36:44 +00:00
|
|
|
|
|
|
|
class Code(RulingsObject):
|
2018-02-06 02:16:54 +00:00
|
|
|
def __init__(self, code, collector_number):
|
2018-01-31 01:36:44 +00:00
|
|
|
self.code = code.lower()
|
2018-02-06 02:16:54 +00:00
|
|
|
self.number = str(collector_number)
|
2018-01-31 01:36:44 +00:00
|
|
|
self.url = 'cards/{}/{}/rulings'.format(self.code, self.number)
|
|
|
|
super(Code, self).__init__(self.url)
|