Module: Aucklandia::Versions
- Included in:
- Client
- Defined in:
- lib/aucklandia/versions.rb
Constant Summary collapse
- VERSIONS_ENDPOINT =
'/gtfs/versions'
Instance Method Summary collapse
-
#get_versions ⇒ Object
objects within the AT API have identifiers that adhere to a versioning convention.
Instance Method Details
#get_versions ⇒ Object
objects within the AT API have identifiers that adhere to a versioning convention. This API call returns the latest ‘version’ of the most up-to-date data.
8 9 10 11 12 13 14 |
# File 'lib/aucklandia/versions.rb', line 8 def get_versions url = build_url(BASE_URL, VERSIONS_ENDPOINT) response = get(url) JSON.parse(response)['response'] end |