Sha256: 7ec5fc19962e0d50fa1dbb5071c176c7093e29f4cdcaabe7b221c998661d890c
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
require 'learn_web/client/lesson/current_lesson' module LearnWeb class Client module Lesson def current_lesson_endpoint "#{API_ROOT}/users/current_lesson" end def current_lesson response = @conn.get do |req| req.url current_lesson_endpoint req.headers['Authorization'] = "Bearer #{token}" end LearnWeb::Client::Lesson::CurrentLesson.new(response) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
learn-web-1.0.0 | lib/learn_web/client/lesson.rb |