module Wanikani::Shared
Public Instance Methods
client()
click to toggle source
# File lib/wanikani/models/shared.rb, line 15 def client @client ||= ::Wanikani::Client.new(::Wanikani.config.to_hash) end
filter(parameters)
click to toggle source
# File lib/wanikani/models/shared.rb, line 11 def filter(parameters) parameters.keep_if { |key, value| permitted_params.include?(key.to_s) } end
permitted_params()
click to toggle source
# File lib/wanikani/models/shared.rb, line 7 def permitted_params raise NotImplementedError end
respond(json)
click to toggle source
# File lib/wanikani/models/shared.rb, line 3 def respond(json) Response.new(json) end