module RedmineAPIHelper::GroupsAPIHelper
Public Instance Methods
create_group(**params)
click to toggle source
creates a new group with params, corresponds to controller#create
# File lib/redmine_api_helper/groups_api_helper.rb, line 54 def create_group(**params) create_object(:group, params) end
destroy_group(id, **params)
click to toggle source
deletes an existing group with params, corresponds to controller#destroy
# File lib/redmine_api_helper/groups_api_helper.rb, line 75 def destroy_group(id, **params) destroy_object(:group, id, params) end
group_add_user(id, user_id, **params)
click to toggle source
updates an existing group with params, corresponds to controller#update
# File lib/redmine_api_helper/groups_api_helper.rb, line 68 def group_add_user(id, user_id, **params) jpost(params.merge(:user_id => user_id), :url => url_path(groups_url, id, "users")) end
group_url(id, **params)
click to toggle source
creates group_url
# File lib/redmine_api_helper/groups_api_helper.rb, line 33 def group_url(id, **params) url_path(groups_url, id, params) end
groups_url(**params)
click to toggle source
reads groups_url
from args
# File lib/redmine_api_helper/groups_api_helper.rb, line 26 def groups_url(**params) url_path(args.urls.Home, "groups", params) end
list_groups(**params)
click to toggle source
lists groups, corresponds to controller#index
# File lib/redmine_api_helper/groups_api_helper.rb, line 40 def list_groups(**params) list_objects(:groups, params) end
read_group(id, **params)
click to toggle source
reads group having id, corresponds to controller#show
# File lib/redmine_api_helper/groups_api_helper.rb, line 47 def read_group(id, **params) read_object(:group, id, params) end
update_group(id, **params)
click to toggle source
updates an existing group with params, corresponds to controller#update
# File lib/redmine_api_helper/groups_api_helper.rb, line 61 def update_group(id, **params) update_object(:group, id, params) end