Module: Aucklandia::ScheduledWorks

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

Constant Summary collapse

SCHEDULED_WORKS_ENDPOINT =
'/locations/scheduledWorks'

Instance Method Summary collapse

Instance Method Details

#get_scheduled_worksObject



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

def get_scheduled_works
  url = build_url(BASE_URL, SCHEDULED_WORKS_ENDPOINT)

  response = get(url)

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