Module: Aucklandia::Calendars

Included in:
Client
Defined in:
lib/aucklandia/calendars.rb

Constant Summary collapse

CALENDARS_ENDPOINT =
'/gtfs/calendar'

Instance Method Summary collapse

Instance Method Details

#get_calendarsObject



5
6
7
8
9
10
11
# File 'lib/aucklandia/calendars.rb', line 5

def get_calendars
	url = build_url(BASE_URL, CALENDARS_ENDPOINT)

	response = get(url)

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