Class: LMS::GraphQL::Mutations::Canvas::RemoveUsageRightsUser

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms/graphql/mutations/canvas/remove_usage_rights_users.rb

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, file_ids:, folder_ids: nil) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/lms/graphql/mutations/canvas/remove_usage_rights_users.rb', line 12

def resolve(user_id:, file_ids:, folder_ids: nil)
  ctx[:canvas_api].proxy(
    "REMOVE_USAGE_RIGHTS_USERS",
    {
      "user_id": user_id,
      "file_ids": file_ids,
      "folder_ids": folder_ids              },
    nil,
  ).parsed_response
end