Scrython/scrython/rulings/scryfall_id.py

8 lines
239 B
Python

from .rulings_object import RulingsObject
class Id(RulingsObject):
def __init__(self, **kwargs):
self.id = str(kwargs.get('id'))
self.url = 'cards/{}/rulings'.format(self.id)
super(Id, self).__init__(self.url)