Class: Fsrs::SchedulingInfo
- Inherits:
-
Object
- Object
- Fsrs::SchedulingInfo
- Defined in:
- lib/fsrs/fsrs.rb
Overview
Scheduling Info
Instance Attribute Summary collapse
-
#card ⇒ Object
Returns the value of attribute card.
-
#review_log ⇒ Object
Returns the value of attribute review_log.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(card, review_log) ⇒ SchedulingInfo
constructor
A new instance of SchedulingInfo.
- #to_h ⇒ Object
Constructor Details
#initialize(card, review_log) ⇒ SchedulingInfo
Returns a new instance of SchedulingInfo.
9 10 11 12 |
# File 'lib/fsrs/fsrs.rb', line 9 def initialize(card, review_log) @card = card @review_log = review_log end |
Instance Attribute Details
#card ⇒ Object
Returns the value of attribute card.
7 8 9 |
# File 'lib/fsrs/fsrs.rb', line 7 def card @card end |
#review_log ⇒ Object
Returns the value of attribute review_log.
7 8 9 |
# File 'lib/fsrs/fsrs.rb', line 7 def review_log @review_log end |
Class Method Details
Instance Method Details
#to_h ⇒ Object
14 15 16 17 18 19 |
# File 'lib/fsrs/fsrs.rb', line 14 def to_h { card: @card.to_h, review_log: @review_log.to_h } end |