class LMSGraphQL::Resolvers::Canvas::GetDepartmentLevelGradeDataTerm

Public Instance Methods

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