Class: LMS::GraphQL::Mutations::Canvas::UpdateSinglePoll
- Inherits:
-
CanvasBaseMutation
- Object
- GraphQL::Schema::Mutation
- CanvasBaseMutation
- LMS::GraphQL::Mutations::Canvas::UpdateSinglePoll
- Defined in:
- lib/lms/graphql/mutations/canvas/update_single_poll.rb
Instance Method Summary collapse
Instance Method Details
#resolve(id:, polls_question:, polls_description: nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/lms/graphql/mutations/canvas/update_single_poll.rb', line 12 def resolve(id:, polls_question:, polls_description: nil) ctx[:canvas_api].proxy( "UPDATE_SINGLE_POLL", { "id": id, "polls[question]": polls_question, "polls[description]": polls_description }, nil, ).parsed_response end |