Module genshin.client.routes

API routes.

Classes

class Route (url: str)

Standard route.

Expand source code
class Route(BaseRoute):
    """Standard route."""

    url: yarl.URL

    def __init__(self, url: str) -> None:
        self.url = yarl.URL(url)

    def get_url(self) -> yarl.URL:
        """Attempt to get a URL."""
        return self.url

Ancestors

  • genshin.client.routes.BaseRoute
  • abc.ABC

Class variables

var url : yarl.URL

Methods

def get_url(self) ‑> yarl.URL

Attempt to get a URL.