Scrython/scrython/rulings/multiverse_id.py

10 lines
338 B
Python
Raw Normal View History

from .rulings_object import RulingsObject
2018-01-31 01:36:44 +00:00
class Multiverse(RulingsObject):
def __init__(self, **kwargs):
2018-02-13 21:55:32 +00:00
if kwargs.get('id') is None:
2018-02-14 02:02:48 +00:00
raise TypeError('No id provided to search by')
2018-02-13 21:55:32 +00:00
self.url = 'cards/multiverse/{}/rulings?'.format(str(kwargs.get('id')))
2018-01-31 01:36:44 +00:00
super(Multiverse, self).__init__(self.url)