class LMSGraphQL::Resolvers::Canvas::GetAllOutcomeLinksForContextAccount

Public Instance Methods

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