Class: LMSGraphQL::Mutations::Canvas::CreateSinglePoll

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/create_single_poll.rb

Instance Method Summary collapse

Instance Method Details

#resolve(polls_question:, polls_description: nil) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/lms_graphql/mutations/canvas/create_single_poll.rb', line 10

def resolve(polls_question:, polls_description: nil)
  ctx[:canvas_api].proxy(
    "CREATE_SINGLE_POLL",
    {
      "polls[question]": polls_question,
      "polls[description]": polls_description            },
    nil,
  ).parsed_response
end