Sha256: b41e24aeb1a662ecf87e9620dbb6f43d0b612d0cbb4aa91582c9781cf9d1e195

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

require 'saru/support/attributes'

module Saru
  class Vocabulary
    include Saru::Support::Attributes

    attr_reader :character, :kana, :meaning, :level,
                :unlocked_date, :user_synonyms, :meaning_note,
                :reading_note, :srs, :srs_numeric, :available_date,
                :burned, :burned_date, :reactivated_date,
                :meaning_correct, :meaning_incorrect,
                :meaning_max_streak, :meaning_current_streak,
                :reading_correct, :reading_incorrect,
                :reading_max_streak, :reading_current_streak

    def meanings
      meaning.to_s.split(',').map(&:strip)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saru-0.2.0 lib/saru/vocabulary.rb
saru-0.1.0 lib/saru/vocabulary.rb