Class: Saru::Kanji
- Inherits:
-
Object
- Object
- Saru::Kanji
- Includes:
- Support::Attributes
- Defined in:
- lib/saru/kanji.rb
Instance Attribute Summary collapse
-
#available_date ⇒ Object
readonly
Returns the value of attribute available_date.
-
#burned ⇒ Object
readonly
Returns the value of attribute burned.
-
#burned_date ⇒ Object
readonly
Returns the value of attribute burned_date.
-
#character ⇒ Object
readonly
Returns the value of attribute character.
-
#important_reading ⇒ Object
readonly
Returns the value of attribute important_reading.
-
#kana ⇒ Object
readonly
Returns the value of attribute kana.
-
#kunyomi ⇒ Object
readonly
Returns the value of attribute kunyomi.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#meaning ⇒ Object
readonly
Returns the value of attribute meaning.
-
#meaning_correct ⇒ Object
readonly
Returns the value of attribute meaning_correct.
-
#meaning_current_streak ⇒ Object
readonly
Returns the value of attribute meaning_current_streak.
-
#meaning_incorrect ⇒ Object
readonly
Returns the value of attribute meaning_incorrect.
-
#meaning_max_streak ⇒ Object
readonly
Returns the value of attribute meaning_max_streak.
-
#meaning_note ⇒ Object
readonly
Returns the value of attribute meaning_note.
-
#nanori ⇒ Object
readonly
Returns the value of attribute nanori.
-
#onyomi ⇒ Object
readonly
Returns the value of attribute onyomi.
-
#reactivated_date ⇒ Object
readonly
Returns the value of attribute reactivated_date.
-
#reading_correct ⇒ Object
readonly
Returns the value of attribute reading_correct.
-
#reading_current_streak ⇒ Object
readonly
Returns the value of attribute reading_current_streak.
-
#reading_incorrect ⇒ Object
readonly
Returns the value of attribute reading_incorrect.
-
#reading_max_streak ⇒ Object
readonly
Returns the value of attribute reading_max_streak.
-
#reading_note ⇒ Object
readonly
Returns the value of attribute reading_note.
-
#srs ⇒ Object
readonly
Returns the value of attribute srs.
-
#srs_numeric ⇒ Object
readonly
Returns the value of attribute srs_numeric.
-
#unlocked_date ⇒ Object
readonly
Returns the value of attribute unlocked_date.
-
#user_synonyms ⇒ Object
readonly
Returns the value of attribute user_synonyms.
Instance Method Summary collapse
Methods included from Support::Attributes
#assign_attributes, #initialize
Instance Attribute Details
#available_date ⇒ Object (readonly)
Returns the value of attribute available_date.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def available_date @available_date end |
#burned ⇒ Object (readonly)
Returns the value of attribute burned.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def burned @burned end |
#burned_date ⇒ Object (readonly)
Returns the value of attribute burned_date.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def burned_date @burned_date end |
#character ⇒ Object (readonly)
Returns the value of attribute character.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def character @character end |
#important_reading ⇒ Object (readonly)
Returns the value of attribute important_reading.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def important_reading @important_reading end |
#kana ⇒ Object (readonly)
Returns the value of attribute kana.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def kana @kana end |
#kunyomi ⇒ Object (readonly)
Returns the value of attribute kunyomi.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def kunyomi @kunyomi end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def level @level end |
#meaning ⇒ Object (readonly)
Returns the value of attribute meaning.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def meaning @meaning end |
#meaning_correct ⇒ Object (readonly)
Returns the value of attribute meaning_correct.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def meaning_correct @meaning_correct end |
#meaning_current_streak ⇒ Object (readonly)
Returns the value of attribute meaning_current_streak.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def meaning_current_streak @meaning_current_streak end |
#meaning_incorrect ⇒ Object (readonly)
Returns the value of attribute meaning_incorrect.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def meaning_incorrect @meaning_incorrect end |
#meaning_max_streak ⇒ Object (readonly)
Returns the value of attribute meaning_max_streak.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def meaning_max_streak @meaning_max_streak end |
#meaning_note ⇒ Object (readonly)
Returns the value of attribute meaning_note.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def meaning_note @meaning_note end |
#nanori ⇒ Object (readonly)
Returns the value of attribute nanori.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def nanori @nanori end |
#onyomi ⇒ Object (readonly)
Returns the value of attribute onyomi.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def onyomi @onyomi end |
#reactivated_date ⇒ Object (readonly)
Returns the value of attribute reactivated_date.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def reactivated_date @reactivated_date end |
#reading_correct ⇒ Object (readonly)
Returns the value of attribute reading_correct.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def reading_correct @reading_correct end |
#reading_current_streak ⇒ Object (readonly)
Returns the value of attribute reading_current_streak.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def reading_current_streak @reading_current_streak end |
#reading_incorrect ⇒ Object (readonly)
Returns the value of attribute reading_incorrect.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def reading_incorrect @reading_incorrect end |
#reading_max_streak ⇒ Object (readonly)
Returns the value of attribute reading_max_streak.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def reading_max_streak @reading_max_streak end |
#reading_note ⇒ Object (readonly)
Returns the value of attribute reading_note.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def reading_note @reading_note end |
#srs ⇒ Object (readonly)
Returns the value of attribute srs.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def srs @srs end |
#srs_numeric ⇒ Object (readonly)
Returns the value of attribute srs_numeric.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def srs_numeric @srs_numeric end |
#unlocked_date ⇒ Object (readonly)
Returns the value of attribute unlocked_date.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def unlocked_date @unlocked_date end |
#user_synonyms ⇒ Object (readonly)
Returns the value of attribute user_synonyms.
7 8 9 |
# File 'lib/saru/kanji.rb', line 7 def user_synonyms @user_synonyms end |
Instance Method Details
#kunyomis ⇒ Object
21 22 23 |
# File 'lib/saru/kanji.rb', line 21 def kunyomis kunyomi.to_s.split(',').map(&:strip) end |
#meanings ⇒ Object
29 30 31 |
# File 'lib/saru/kanji.rb', line 29 def meanings meaning.to_s.split(',').map(&:strip) end |
#onyomis ⇒ Object
25 26 27 |
# File 'lib/saru/kanji.rb', line 25 def onyomis onyomi.to_s.split(',').map(&:strip) end |
#wanikani_reading ⇒ Object
17 18 19 |
# File 'lib/saru/kanji.rb', line 17 def wanikani_reading send important_reading end |