Scrython/scrython/cards/randomcard.py

25 lines
536 B
Python
Raw Normal View History

from .cards_object import CardsObject
class Random(CardsObject):
2018-02-21 19:42:58 +00:00
"""
cards/random
Get a random card.
Positional arguments:
No arguments are required.
Optional arguments:
All arguments are inherited from CardsObject
Attributes:
All attributes are inherited from CardsObject
Example usage:
>>> card = scrython.cards.Random()
>>> card.purchase_uris()
"""
def __init__(self):
2018-02-14 02:02:48 +00:00
self.url = 'cards/random?'
super(Random, self).__init__(self.url)