From 3488ece3e4d4883583825d0cfc4471a87e49c615 Mon Sep 17 00:00:00 2001 From: Roy Mumaw Date: Tue, 21 Jun 2016 11:52:30 -0500 Subject: [PATCH] Add functionality to fetch workspace user information Signed-off-by: Roy Mumaw --- lib/togglv8/workspaces.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/togglv8/workspaces.rb b/lib/togglv8/workspaces.rb index 8ea1d55a8..6342fc96e 100644 --- a/lib/togglv8/workspaces.rb +++ b/lib/togglv8/workspaces.rb @@ -31,6 +31,10 @@ def users(workspace_id) get "workspaces/#{workspace_id}/users" end + def workspace_users(workspace_id) + get "workspaces/#{workspace_id}/workspace_users" + end + def tasks(workspace_id, params={}) active = params.has_key?(:active) ? "?active=#{params[:active]}" : "" get "workspaces/#{workspace_id}/tasks#{active}"