Class: LMS::GraphQL::Mutations::Canvas::CreateSinglePollSubmission
- Inherits:
-
CanvasBaseMutation
- Object
- GraphQL::Schema::Mutation
- CanvasBaseMutation
- LMS::GraphQL::Mutations::Canvas::CreateSinglePollSubmission
- Defined in:
- lib/lms/graphql/mutations/canvas/create_single_poll_submission.rb
Instance Method Summary collapse
Instance Method Details
#resolve(poll_id:, poll_session_id:, poll_submissions_poll_choice_id:) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/lms/graphql/mutations/canvas/create_single_poll_submission.rb', line 12 def resolve(poll_id:, poll_session_id:, poll_submissions_poll_choice_id:) ctx[:canvas_api].proxy( "CREATE_SINGLE_POLL_SUBMISSION", { "poll_id": poll_id, "poll_session_id": poll_session_id, "poll_submissions[poll_choice_id]": poll_submissions_poll_choice_id }, nil, ).parsed_response end |