Class: Wanikani::Level
- Inherits:
-
Object
- Object
- Wanikani::Level
- Defined in:
- lib/wanikani/level.rb
Class Method Summary collapse
-
.full_response ⇒ Hash
Gets the full response of the Level Progression API call.
-
.progression ⇒ Hash
Gets the user’s current level progression (radicals and Kanji).
Class Method Details
.full_response ⇒ Hash
Gets the full response of the Level Progression API call.
16 17 18 |
# File 'lib/wanikani/level.rb', line 16 def self.full_response return Wanikani.api_response("level-progression") end |
.progression ⇒ Hash
Gets the user’s current level progression (radicals and Kanji).
7 8 9 10 11 |
# File 'lib/wanikani/level.rb', line 7 def self.progression api_response = Wanikani.api_response("level-progression") current_level = { "current_level" => api_response["user_information"]["level"] } return api_response["requested_information"].merge(current_level) end |