Module: Wanikani

Defined in:
lib/wanikani.rb,
lib/wanikani/client.rb,
lib/wanikani/version.rb,
lib/wanikani/response.rb,
lib/wanikani/models/user.rb,
lib/wanikani/models/reset.rb,
lib/wanikani/configuration.rb,
lib/wanikani/models/review.rb,
lib/wanikani/models/shared.rb,
lib/wanikani/models/subject.rb,
lib/wanikani/models/summary.rb,
lib/wanikani/models/assignment.rb,
lib/wanikani/models/voice_actor.rb,
lib/wanikani/models/study_material.rb,
lib/wanikani/models/review_statistic.rb,
lib/wanikani/models/level_progression.rb,
lib/wanikani/models/spaced_repetition_system.rb

Defined Under Namespace

Modules: Assignment, LevelProgression, Reset, Review, ReviewStatistic, Shared, SpacedRepetitionSystem, StudyMaterial, Subject, Summary, User, VoiceActor Classes: Client, Configuration, Exception, InvalidKey, Response

Constant Summary collapse

DEFAULT_API_REVISION =
'20170710'
VALID_API_REVISIONS =
%w(20170710)
DEFAULT_CONFIG =
{
  api_revision: DEFAULT_API_REVISION
}
VERSION =
'3.0.0'

Class Method Summary collapse

Class Method Details

.configObject

global settings



37
38
39
# File 'lib/wanikani.rb', line 37

def self.config
  @config ||= Wanikani::Configuration.new(DEFAULT_CONFIG)
end

.configure {|@config ||= Wanikani::Configuration.new(DEFAULT_CONFIG)| ... } ⇒ Object



32
33
34
# File 'lib/wanikani.rb', line 32

def self.configure
  yield @config ||= Wanikani::Configuration.new(DEFAULT_CONFIG)
end