Added enchantment types to catalog.

This commit is contained in:
2018-03-24 18:16:17 -04:00
parent ac92a0173e
commit f80c7b15c8
3 changed files with 26 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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)