class LMSGraphQL::Mutations::Canvas::CreateErrorReport

Public Instance Methods

resolve(error_subject:, error_url: nil, error_email: nil, error_comments: nil, error_http_env: nil) click to toggle source
# File lib/lms_graphql/mutations/canvas/create_error_report.rb, line 16
def resolve(error_subject:, error_url: nil, error_email: nil, error_comments: nil, error_http_env: nil)
  context[:canvas_api].call("CREATE_ERROR_REPORT").proxy(
    "CREATE_ERROR_REPORT",
    {},
    {
      "error[subject]": error_subject,
      "error[url]": error_url,
      "error[email]": error_email,
      "error[comments]": error_comments,
      "error[http_env]": error_http_env
    },
  ).parsed_response
end