Class: LMS::GraphQL::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



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

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