Class: LMSGraphQL::Mutations::Canvas::CreateJwt

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

Instance Method Summary collapse

Instance Method Details

#resolve(workflows: nil, context_type: nil, context_id: nil, context_uuid: nil) ⇒ Object



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

def resolve(workflows: nil, context_type: nil, context_id: nil, context_uuid: nil)
  context[:canvas_api].call("CREATE_JWT").proxy(
    "CREATE_JWT",
    {},
    {
      "workflows": workflows,
      "context_type": context_type,
      "context_id": context_id,
      "context_uuid": context_uuid
    },
  ).parsed_response
end