lib/gds_api/worldwide.rb
require_relative 'base' class GdsApi::Worldwide < GdsApi::Base def world_locations get_list("#{base_url}/world-locations") end def world_location(location_slug) get_json("#{base_url}/world-locations/#{location_slug}") end def organisations_for_world_location(location_slug) get_list("#{base_url}/world-locations/#{location_slug}/organisations") end private def base_url "#{endpoint}/api" end end