class LMSGraphQL::Resolvers::Canvas::GetSingleRubricAccount

Public Instance Methods

resolve(account_id:, id:, include: nil, style: nil, get_all: false) click to toggle source
# File lib/lms_graphql/resolvers/canvas/get_single_rubric_accounts.rb, line 12
def resolve(account_id:, id:, include: nil, style: nil, get_all: false)
  result = context[:canvas_api].call("GET_SINGLE_RUBRIC_ACCOUNTS").proxy(
    "GET_SINGLE_RUBRIC_ACCOUNTS",
    {
      "account_id": account_id,
      "id": id,
      "include": include,
      "style": style            },
    nil,
    get_all,
  )
  get_all ? result : result.parsed_response
end