Class: LMSGraphQL::Mutations::Canvas::CreateBlackoutDateCourse
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::CreateBlackoutDateCourse
- Defined in:
- lib/lms_graphql/mutations/canvas/create_blackout_date_courses.rb
Instance Method Summary collapse
Instance Method Details
#resolve(course_id:, start_date: nil, end_date: nil, event_title: nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/lms_graphql/mutations/canvas/create_blackout_date_courses.rb', line 15 def resolve(course_id:, start_date: nil, end_date: nil, event_title: nil) context[:canvas_api].call("CREATE_BLACKOUT_DATE_COURSES").proxy( "CREATE_BLACKOUT_DATE_COURSES", { "course_id": course_id }, { "start_date": start_date, "end_date": end_date, "event_title": event_title }, ).parsed_response end |