Class: Fsrs::ReviewLog

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

Overview

Review Log

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.



20
21
22
23
24
25
26
# File 'lib/fsrs/fsrs.rb', line 20

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.



18
19
20
# File 'lib/fsrs/fsrs.rb', line 18

def elapsed_days
  @elapsed_days
end

#ratingObject

Returns the value of attribute rating.



18
19
20
# File 'lib/fsrs/fsrs.rb', line 18

def rating
  @rating
end

#reviewObject

Returns the value of attribute review.



18
19
20
# File 'lib/fsrs/fsrs.rb', line 18

def review
  @review
end

#scheduled_daysObject

Returns the value of attribute scheduled_days.



18
19
20
# File 'lib/fsrs/fsrs.rb', line 18

def scheduled_days
  @scheduled_days
end

#stateObject

Returns the value of attribute state.



18
19
20
# File 'lib/fsrs/fsrs.rb', line 18

def state
  @state
end