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-21 23:33:58 +00:00
|
|
|
"""
|
|
|
|
cards/:code/:collector_number/rulings
|
|
|
|
|
|
|
|
Gets the ruling of a card by the set and collector number.
|
|
|
|
|
|
|
|
Positional arguments:
|
|
|
|
set : str ...... The 3 letter set code of the card you want rulings for.
|
|
|
|
collector_number : ................... The collector number of the card.
|
|
|
|
|
|
|
|
Optional arguments:
|
|
|
|
All arguments inherited from RulingsObject
|
|
|
|
|
|
|
|
Attributes:
|
|
|
|
All attributes inherited from RulingsObject
|
|
|
|
|
|
|
|
Example usage:
|
|
|
|
>>> rule = scrython.rulings.Code(code='ddg', collector_number='42')
|
|
|
|
>>> rule.data_length()
|
|
|
|
"""
|
2018-02-06 02:16:54 +00:00
|
|
|
def __init__(self, code, collector_number):
|
2018-02-15 20:13:39 +00:00
|
|
|
self.url = 'cards/{}/{}/rulings?'.format(code.lower(), str(collector_number))
|
2018-01-31 01:36:44 +00:00
|
|
|
super(Code, self).__init__(self.url)
|