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