class LMSGraphQL::Resolvers::Canvas::RetrieveReportedCspViolationsForAccount
Public Instance Methods
resolve(account_id:, get_all: false)
click to toggle source
# File lib/lms_graphql/resolvers/canvas/retrieve_reported_csp_violations_for_account.rb, line 9 def resolve(account_id:, get_all: false) result = context[:canvas_api].call("RETRIEVE_REPORTED_CSP_VIOLATIONS_FOR_ACCOUNT").proxy( "RETRIEVE_REPORTED_CSP_VIOLATIONS_FOR_ACCOUNT", { "account_id": account_id }, nil, get_all, ) get_all ? result : result.parsed_response end