Class: LMSGraphQL::Mutations::Canvas::DeleteModule
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::DeleteModule
- Defined in:
- lib/lms_graphql/mutations/canvas/delete_module.rb
Instance Method Summary collapse
Instance Method Details
#resolve(course_id:, id:) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/lms_graphql/mutations/canvas/delete_module.rb', line 16 def resolve(course_id:, id:) context[:canvas_api].call("DELETE_MODULE").proxy( "DELETE_MODULE", { "course_id": course_id, "id": id }, {}, ).parsed_response end |
#resolve_module ⇒ Object
12 13 14 |
# File 'lib/lms_graphql/mutations/canvas/delete_module.rb', line 12 def resolve_module object[:module] end |