Module: Wanikani::SpacedRepetitionSystem
- Extended by:
- Shared
- Defined in:
- lib/wanikani/models/spaced_repetition_system.rb
Constant Summary
collapse
- PERMITTED_PARAMS =
%w[ids updated_after].freeze
Class Method Summary
collapse
Methods included from Shared
client, filter, permitted_params, respond
Class Method Details
.find(id) ⇒ Object
17
18
19
|
# File 'lib/wanikani/models/spaced_repetition_system.rb', line 17
def self.find(id)
respond(client.get("spaced_repetition_systems/#{id}"))
end
|
.find_all ⇒ Object
8
9
10
|
# File 'lib/wanikani/models/spaced_repetition_system.rb', line 8
def self.find_all
find_by
end
|
.find_by(parameters = {}) ⇒ Object
12
13
14
15
|
# File 'lib/wanikani/models/spaced_repetition_system.rb', line 12
def self.find_by(parameters = {})
respond(client.get('spaced_repetition_systems',
filter(parameters)))
end
|
.permitted_params ⇒ Object
21
22
23
|
# File 'lib/wanikani/models/spaced_repetition_system.rb', line 21
def self.permitted_params
PERMITTED_PARAMS
end
|