Method: LearnWeb::Client::Lesson#current_lesson

Defined in:
lib/learn_web/client/lesson.rb

#current_lessonObject



20
21
22
23
24
25
26
27
# File 'lib/learn_web/client/lesson.rb', line 20

def current_lesson
  response = get(
    current_lesson_endpoint,
    headers: { 'Authorization' => "Bearer #{token}" }
  )

  LearnWeb::Client::Lesson::CurrentLesson.new(response)
end