module

TCal::V3API

Modules for fetching JSON:API data from the MBTA's V3 API. See also the API reference.

Macros

def_endpoint(path, resource, params = {} of String => String)

Defines a self.all! method that calls a V3 API "index" endpoint.

path is the absolute path of the endpoint. resource is the class for deserializing resource instances. params are extra parameters that should be added to all requests.

Source

Nested types