Class: WKCheck::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/wkcheck.rb

Instance Method Summary collapse

Instance Method Details

#level_progressionObject



17
18
19
20
21
22
# File 'lib/wkcheck.rb', line 17

def level_progression
  progress = Wanikani::Level.progression
  message = "Your progress for level #{progress["current_level"]}:\n".color(:green)
  message += progression_message(progress, "radicals")
  message += progression_message(progress, "kanji")
end

#study_queueObject



9
10
11
12
13
14
15
# File 'lib/wkcheck.rb', line 9

def study_queue
  queue = Wanikani::StudyQueue.queue
  lessons = queue["lessons_available"]
  reviews = queue["reviews_available"]
  next_review_date = Time.at(queue["next_review_date"]).strftime("%A, %B %-d at %-l:%M %p")
  queue_message(lessons, reviews, next_review_date)
end