"""Provide the DomainListing class."""
from ...const import API_PATH
from .mixins import BaseListingMixin, RisingListingMixin


class DomainListing(BaseListingMixin, RisingListingMixin):
    """Provide a set of functions to interact with domain listings."""

    def __init__(self, reddit, domain):
        """Initialize a DomainListing instance.

        :param reddit: An instance of Reddit.
        :param domain: The domain for which to obtain listings.

        """
        super(DomainListing, self).__init__(reddit, None)
        self._path = API_PATH['domain'].format(domain=domain)
