module Aucklandia::Stops

Constants

STOPS_ENDPOINT

Public Instance Methods

get_stops() click to toggle source
# File lib/aucklandia/stops.rb, line 5
def get_stops
  url = build_url(BASE_URL, STOPS_ENDPOINT)

  response = get(url)

  JSON.parse(response)['response']
end
get_stops_by_trip_id(trip_id) click to toggle source
# File lib/aucklandia/stops.rb, line 13
def get_stops_by_trip_id(trip_id)
  url = build_url(BASE_URL, STOPS_ENDPOINT, '/tripId/', trip_id)

  response = get(url)

  JSON.parse(response)['response']
end