Class: LMS::GraphQL::Mutations::Canvas::UpdateSinglePollChoice
- Inherits:
-
CanvasBaseMutation
- Object
- GraphQL::Schema::Mutation
- CanvasBaseMutation
- LMS::GraphQL::Mutations::Canvas::UpdateSinglePollChoice
- Defined in:
- lib/lms/graphql/mutations/canvas/update_single_poll_choice.rb
Instance Method Summary collapse
Instance Method Details
#resolve(poll_id:, id:, poll_choices_text:, poll_choices_is_correct: nil, poll_choices_position: nil) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/lms/graphql/mutations/canvas/update_single_poll_choice.rb', line 14 def resolve(poll_id:, id:, poll_choices_text:, poll_choices_is_correct: nil, poll_choices_position: nil) ctx[:canvas_api].proxy( "UPDATE_SINGLE_POLL_CHOICE", { "poll_id": poll_id, "id": id, "poll_choices[text]": poll_choices_text, "poll_choices[is_correct]": poll_choices_is_correct, "poll_choices[position]": poll_choices_position }, nil, ).parsed_response end |