class LMSGraphQL::Resolvers::Canvas::GetResultsForSinglePollSession

Public Instance Methods

resolve(poll_id:, id:, get_all: false) click to toggle source
# File lib/lms_graphql/resolvers/canvas/get_results_for_single_poll_session.rb, line 10
def resolve(poll_id:, id:, get_all: false)
  result = context[:canvas_api].call("GET_RESULTS_FOR_SINGLE_POLL_SESSION").proxy(
    "GET_RESULTS_FOR_SINGLE_POLL_SESSION",
    {
      "poll_id": poll_id,
      "id": id            },
    nil,
    get_all,
  )
  get_all ? result : result.parsed_response
end