Class: WKCheck::Stats
- Inherits:
-
Object
- Object
- WKCheck::Stats
- Defined in:
- lib/wkcheck.rb
Instance Method Summary collapse
Instance Method Details
#level_progression ⇒ Object
17 18 19 20 21 22 |
# File 'lib/wkcheck.rb', line 17 def level_progression progress = Wanikani::Level.progression = "Your progress for level #{progress["current_level"]}:\n".color(:green) += (progress, "radicals") += (progress, "kanji") end |
#study_queue ⇒ Object
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") (lessons, reviews, next_review_date) end |