Updated docstrings of all cards modules.

This commit is contained in:
Nanda Scott 2018-01-10 22:07:15 -05:00
parent 7e35da05c2
commit 83df7a5387
4 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@ import asyncio, aiohttp
import json
class Collector(object):
""" cards/named
""" cards/:code/:collector_number
Parameters:
code: int The 3 or 4 letter set code.
@ -82,7 +82,7 @@ class Collector(object):
'version':self.version,
'pretty':self.pretty
}))
if self.scryfallJson['object'] == 'error':
raise Exception(self.scryfallJson['details'])
self.session.close()

View File

@ -2,7 +2,7 @@ import asyncio, aiohttp
import json
class Id(object):
""" cards/named
""" cards/:id
Parameters:
id: str The Scryfall id of the card.

View File

@ -2,10 +2,10 @@ import asyncio, aiohttp
import json
class Mtgo(object):
""" cards/named
""" cards/mtgo/:id
Parameters:
id: int The multiverse id of the card.
id: int The mtgo id of the card.
format: str The data format to return: json, text, or image. Defaults to json.
face: str If using the image format and this parameter has the value back,
the back face of the card will be returned.

View File

@ -2,7 +2,7 @@ import asyncio, aiohttp
import json
class RandomCard(object):
""" cards/named
""" cards/random
Parameters:
format: str The data format to return: json, text, or image. Defaults to json.
@ -78,7 +78,7 @@ class RandomCard(object):
'version':self.version,
'pretty':self.pretty
}))
if self.scryfallJson['object'] == 'error':
raise Exception(self.scryfallJson['details'])
self.session.close()