From f80c7b15c82850baa9f4d2b41587e1c263008bd4 Mon Sep 17 00:00:00 2001 From: Date: Sat, 24 Mar 2018 18:16:17 -0400 Subject: [PATCH] Added enchantment types to catalog. --- scrython/__init__.py | 1 + scrython/catalog/__init__.py | 1 + scrython/catalog/enchantment_types.py | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 scrython/catalog/enchantment_types.py diff --git a/scrython/__init__.py b/scrython/__init__.py index 9ef8a66..e99b470 100644 --- a/scrython/__init__.py +++ b/scrython/__init__.py @@ -22,6 +22,7 @@ from scrython.sets import Sets from scrython.catalog import ArtifactTypes from scrython.catalog import CardNames from scrython.catalog import CreatureTypes +from scrython.catalog import EnchantmentTypes from scrython.catalog import LandTypes from scrython.catalog import Loyalties from scrython.catalog import PlaneswalkerTypes diff --git a/scrython/catalog/__init__.py b/scrython/catalog/__init__.py index 4d4dcd2..6fc82dd 100644 --- a/scrython/catalog/__init__.py +++ b/scrython/catalog/__init__.py @@ -1,6 +1,7 @@ from .artifact_types import ArtifactTypes from .card_names import CardNames from .creature_types import CreatureTypes +from .enchantment_types import EnchantmentTypes from .land_types import LandTypes from .loyalties import Loyalties from .planeswalker_types import PlaneswalkerTypes diff --git a/scrython/catalog/enchantment_types.py b/scrython/catalog/enchantment_types.py new file mode 100644 index 0000000..1af0ad8 --- /dev/null +++ b/scrython/catalog/enchantment_types.py @@ -0,0 +1,24 @@ +from .catalogs_object import CatalogsObject + +class EnchantmentTypes(CatalogsObject): + """ + catalogs/enchantment-types + + Catalog object for all known enchantment types. + + 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.EnchantmentTypes() + >>> catalog.data() + """ + def __init__(self): + self._url = 'catalog/enchantment-types?' + super(EnchantmentTypes, self).__init__(self._url)