Class: Saru::List

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
AvailableDate, Incorrect, KanjiRelated, Srs, UnlockedDate
Defined in:
lib/saru/list.rb,
lib/saru/list/srs.rb,
lib/saru/list/incorrect.rb,
lib/saru/list/kanji_related.rb,
lib/saru/list/unlocked_date.rb,
lib/saru/list/available_date.rb

Defined Under Namespace

Modules: AvailableDate, Incorrect, KanjiRelated, Srs, UnlockedDate

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from KanjiRelated

#important_reading_is, #kunyomi_is, #onyomi_is

Methods included from Srs

#srs_in, #srs_numeric_larger_than, #srs_numeric_smaller_than

Methods included from Incorrect

#meaning_incorrect_larger_than, #meaning_incorrect_smaller_than, #reading_incorrect_larger_than, #reading_incorrect_smaller_than, #total_incorrect_larger_than, #total_incorrect_smaller_than

Methods included from UnlockedDate

#unlocked_after, #unlocked_before, #unlocked_between

Methods included from Support::TimeConverter

#to_unix

Methods included from AvailableDate

#available_after, #available_before, #avaliable_between

Constructor Details

#initialize(items) ⇒ List

Returns a new instance of List.



19
20
21
# File 'lib/saru/list.rb', line 19

def initialize items
  @items = items
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



17
18
19
# File 'lib/saru/list.rb', line 17

def items
  @items
end

Instance Method Details

#export_to_ankiObject



27
28
29
# File 'lib/saru/list.rb', line 27

def export_to_anki
  anki.generate
end

#to_ankiObject



23
24
25
# File 'lib/saru/list.rb', line 23

def to_anki
  anki.deck
end