Class: ActiveRecall::FSRS::Internal::ReviewLog

Inherits:
Object
  • Object
show all
Defined in:
lib/active_recall/algorithms/fsrs/internal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rating, scheduled_days, elapsed_days, review, state) ⇒ ReviewLog

Returns a new instance of ReviewLog.



40
41
42
43
44
45
46
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 40

def initialize(rating, scheduled_days, elapsed_days, review, state)
  @rating = rating
  @scheduled_days = scheduled_days
  @elapsed_days = elapsed_days
  @review = review
  @state = state
end

Instance Attribute Details

#elapsed_daysObject

Returns the value of attribute elapsed_days.



38
39
40
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 38

def elapsed_days
  @elapsed_days
end

#ratingObject

Returns the value of attribute rating.



38
39
40
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 38

def rating
  @rating
end

#reviewObject

Returns the value of attribute review.



38
39
40
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 38

def review
  @review
end

#scheduled_daysObject

Returns the value of attribute scheduled_days.



38
39
40
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 38

def scheduled_days
  @scheduled_days
end

#stateObject

Returns the value of attribute state.



38
39
40
# File 'lib/active_recall/algorithms/fsrs/internal.rb', line 38

def state
  @state
end