Method: LearnWeb::Client::Lesson#next_lesson
- Defined in:
- lib/learn_web/client/lesson.rb
#next_lesson ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/learn_web/client/lesson.rb', line 29 def next_lesson response = get( next_lesson_endpoint, headers: { 'Authorization' => "Bearer #{token}" }, params: { 'dir_name' => File.basename(FileUtils.pwd) } ) LearnWeb::Client::Lesson::NextLesson.new(response) end |