Scrython/scrython/sets/code.py

24 lines
595 B
Python
Raw Normal View History

2018-02-17 00:06:09 +00:00
from .sets_object import SetsObject
class Code(SetsObject):
2018-02-22 00:00:01 +00:00
"""
sets/:code
Get a set with a 3 letter code.
Positional arguments:
code : str ............................... The 3 letter code of the set.
Optional arguments:
All arguments are inherited from SetsObject
Attributes:
All attributes are inherited from SetsObject
Example usage:
>>> set = scrython.sets.Code(code='por')
>>> set.name()
"""
2018-02-17 00:06:09 +00:00
def __init__(self, code):
self._url = 'sets/{}?'.format(code)
super(Code, self).__init__(self._url)