Class: LMSGraphQL::Mutations::Canvas::CreateSinglePollChoice
- Inherits:
-
CanvasBaseMutation
- Object
- GraphQL::Schema::Mutation
- CanvasBaseMutation
- LMSGraphQL::Mutations::Canvas::CreateSinglePollChoice
- Defined in:
- lib/lms_graphql/mutations/canvas/create_single_poll_choice.rb
Instance Method Summary collapse
Instance Method Details
#resolve(poll_id:, poll_choices_text:, poll_choices_is_correct: nil, poll_choices_position: nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lms_graphql/mutations/canvas/create_single_poll_choice.rb', line 12 def resolve(poll_id:, poll_choices_text:, poll_choices_is_correct: nil, poll_choices_position: nil) ctx[:canvas_api].proxy( "CREATE_SINGLE_POLL_CHOICE", { "poll_id": poll_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 |