Class: LMSGraphQL::Resolvers::Canvas::GetSingleCourseCourse

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

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
15
16
17
18
19
20
# File 'lib/lms_graphql/resolvers/canvas/get_single_course_courses.rb', line 11

def resolve(id:, include: nil, teacher_limit: nil)
  context[:canvas_api].call("GET_SINGLE_COURSE_COURSES").proxy(
    "GET_SINGLE_COURSE_COURSES",
    {
      "id": id,
      "include": include,
      "teacher_limit": teacher_limit            },
    nil,
  ).parsed_response
end