ex_metra v0.1.0 ExMetra.Agency

Represents a response from the agency API call

Link to this section Summary

Functions

Converts a map that was provided by the Poison library, which represents a JSON object and turns it into an Agency struct

The specific part of the url that will call the agency API

Link to this section Types

Link to this type t()
t() :: %ExMetra.Agency{agency_fare_url: String.t(), agency_id: String.t(), agency_lang: String.t(), agency_name: String.t(), agency_phone: String.t(), agency_timezone: String.t(), agency_url: String.t()}

Link to this section Functions

Link to this function from_json(json)
from_json(map()) :: ExMetra.Agency.t()

Converts a map that was provided by the Poison library, which represents a JSON object and turns it into an Agency struct

The specific part of the url that will call the agency API