Class: BrickFTP::RESTfulAPI::RemoveGroupMember
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::RemoveGroupMember
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/remove_group_member.rb
Overview
Remove a member
Instance Method Summary collapse
-
#call(group_id, user_id) ⇒ Object
Removes a user from a group.
Methods included from Command
Instance Method Details
#call(group_id, user_id) ⇒ Object
Removes a user from a group. No action will be taken if the user is not already in the group.
17 18 19 20 |
# File 'lib/brick_ftp/restful_api/remove_group_member.rb', line 17 def call(group_id, user_id) client.delete("/api/rest/v1/groups/#{group_id}/memberships/#{user_id}.json") true end |