Class: LMSGraphQL::Resolvers::Canvas::GetSingleCourseAccount

Inherits:
CanvasBaseResolver
  • Object
show all
Defined in:
lib/lms_graphql/resolvers/canvas/get_single_course_accounts.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, id:, include: nil, teacher_limit: nil, get_all: false) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
# 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": ,
      "id": id,
      "include": include,
      "teacher_limit": teacher_limit            },
    nil,
    get_all,
  )
  get_all ? result : result.parsed_response
end