From 732b2f34b610bc1bb26f21000ef930f861a7f32c Mon Sep 17 00:00:00 2001 From: Nanda Scott Date: Mon, 22 Oct 2018 11:08:19 -0400 Subject: [PATCH] Updated catalog to include artist_names --- scrython/catalog/__init__.py | 1 + scrython/catalog/artist_names.py | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 scrython/catalog/artist_names.py diff --git a/scrython/catalog/__init__.py b/scrython/catalog/__init__.py index 6fc82dd..24923dc 100644 --- a/scrython/catalog/__init__.py +++ b/scrython/catalog/__init__.py @@ -10,3 +10,4 @@ from .spell_types import SpellTypes from .toughnesses import Toughnesses from .watermarks import Watermarks from .word_bank import WordBank +from .artist_names import ArtistNames diff --git a/scrython/catalog/artist_names.py b/scrython/catalog/artist_names.py new file mode 100644 index 0000000..2e10e3f --- /dev/null +++ b/scrython/catalog/artist_names.py @@ -0,0 +1,24 @@ +from .catalogs_object import CatalogsObject + +class ArtistNames(CatalogsObject): + """ + catalogs/card-names + + Catalog object for all known card names. + + Positional Arguments: + No arguments are required. + + Optional Arguments: + All arguments are inherited from CatalogsObject + + Attributes: + All attributes are inherited from CatalogsObject + + Example usage: + >>> catalog = scrython.catalog.CardNames() + >>> catalog.data() + """ + def __init__(self): + self._url = 'catalog/artist-names?' + super(ArtistNames, self).__init__(self._url)