How to use the scrython.rulings.rulings_object.RulingsObject function in scrython

To help you get started, we’ve selected a few scrython examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NandaScott / Scrython / scrython / rulings / set_code.py View on Github external
from .rulings_object import RulingsObject

class Code(RulingsObject):
    """
    cards/:code/:collector_number/rulings

    Gets the ruling of a card by the set and collector number.

    Args:
        set (string): The 3 letter set code of the card you want rulings for.
        collector_number (string): The collector number of the card.
        format (string, optional): Returns data in the specified method. Defaults to JSON.
        face (string, optional): 
            If you're using the `image` format, this will specify if you want the front or back face.
        version (string, optional):
            If you're using the `image` format, this will specify if you want the small, normal, large, etc version of the image.
        pretty (string, optional):
            Returns a prettier version of the json object. Note that this may break functionality with Scrython.
github NandaScott / Scrython / scrython / rulings / multiverse_id.py View on Github external
from .rulings_object import RulingsObject

class Multiverse(RulingsObject):
    """
    cards/multiverse/:id/rulings

    Gets the ruling of a card by the Multiverse Id.

    Args:
        id (string): The multiverse id of the card you want rulings for.
        format (string, optional): Returns data in the specified method. Defaults to JSON.
        face (string, optional): 
            If you're using the `image` format, this will specify if you want the front or back face.
        version (string, optional):
            If you're using the `image` format, this will specify if you want the small, normal, large, etc version of the image.
        pretty (string, optional):
            Returns a prettier version of the json object. Note that this may break functionality with Scrython.

    Returns:
github NandaScott / Scrython / scrython / rulings / mtgo.py View on Github external
from .rulings_object import RulingsObject

class Mtgo(RulingsObject):
    """
    cards/mtgo/:id/rulings

    Gets the ruling of a card by the Mtgo Id.

    Args:
        id (string): The mtgo id of the card you want rulings for.
        format (string, optional): Returns data in the specified method. Defaults to JSON.
        face (string, optional): 
            If you're using the `image` format, this will specify if you want the front or back face.
        version (string, optional):
            If you're using the `image` format, this will specify if you want the small, normal, large, etc version of the image.
        pretty (string, optional):
            Returns a prettier version of the json object. Note that this may break functionality with Scrython.

    Returns:
github NandaScott / Scrython / scrython / rulings / scryfall_id.py View on Github external
from .rulings_object import RulingsObject

class Id(RulingsObject):
    """
    cards/:id/rulings

    Gets the ruling of a card by the Scryfall Id.

    Args:
        id (string): The id of the card you want rulings for.
        format (string, optional): Returns data in the specified method. Defaults to JSON.
        face (string, optional): 
            If you're using the `image` format, this will specify if you want the front or back face.
        version (string, optional):
            If you're using the `image` format, this will specify if you want the small, normal, large, etc version of the image.
        pretty (string, optional):
            Returns a prettier version of the json object. Note that this may break functionality with Scrython.

    Returns:
github NandaScott / Scrython / scrython / rulings / arena.py View on Github external
from .rulings_object import RulingsObject

class Arena(RulingsObject):
    """
    cards/mtgo/:id/rulings

    Gets the ruling of a card by the Arena Id.

    Args:
        id (string): The arena id of the card you want rulings for.
        format (string, optional): Returns data in the specified method. Defaults to JSON.
        face (string, optional): 
            If you're using the `image` format, this will specify if you want the front or back face.
        version (string, optional):
            If you're using the `image` format, this will specify if you want the small, normal, large, etc version of the image.
        pretty (string, optional):
            Returns a prettier version of the json object. Note that this may break functionality with Scrython.

    Returns: