Class: LMSGraphQL::Resolvers::Canvas::RetrieveReportedCspViolationsForAccount
- Inherits:
-
CanvasBaseResolver
- Object
- GraphQL::Schema::Resolver
- CanvasBaseResolver
- LMSGraphQL::Resolvers::Canvas::RetrieveReportedCspViolationsForAccount
- Defined in:
- lib/lms_graphql/resolvers/canvas/retrieve_reported_csp_violations_for_account.rb
Instance Method Summary collapse
Instance Method Details
#resolve(account_id:, get_all: false) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# 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 |