Class: LMSGraphQL::Mutations::Canvas::DeactivateRole

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/deactivate_role.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, id:, role_id:, role: nil) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/lms_graphql/mutations/canvas/deactivate_role.rb', line 15

def resolve(account_id:, id:, role_id:, role: nil)
  context[:canvas_api].call("DEACTIVATE_ROLE").proxy(
    "DEACTIVATE_ROLE",
    {
      "account_id": ,
      "id": id,
      "role_id": role_id,
      "role": role
    },
    {},
  ).parsed_response
end