View Source Memorex.Domain.CardLog (Memorex v0.2.2)

A Memorex.Domain.Card has one or more Memorex.Domain.CardLogs; every time you answer a card when reviewing/drilling (via MemorexWeb.ReviewLive) a Memorex.Domain.CardLog entry is created.

Link to this section Summary

Link to this section Types

@type t() :: %Memorex.Domain.CardLog{
  __meta__: term(),
  answer_choice: Memorex.Domain.Card.answer_choice(),
  card: term(),
  card_status: Memorex.Domain.Card.card_status(),
  card_type: Memorex.Domain.Card.card_type(),
  current_step: non_neg_integer(),
  due: DateTime.t(),
  ease_factor: float(),
  id: | nil,
  inserted_at: DateTime.t() | nil,
  interval: Timex.Duration.t(),
  last_card_status: Memorex.Domain.Card.card_status(),
  last_card_type: Memorex.Domain.Card.card_type(),
  last_due: DateTime.t(),
  last_ease_factor: float(),
  last_interval: Timex.Duration.t(),
  last_step: non_neg_integer(),
  note: term(),
  reps: non_neg_integer(),
  time_to_answer: Timex.Duration.t(),
  updated_at: DateTime.t() | nil

Link to this section Functions

Link to this function

new(answer_choice, card_before, card_after, time_to_answer)

View Source
@spec new(
  Memorex.Domain.Card.answer_choice() | nil,
  card_before :: Memorex.Domain.Card.t(),
  card_after :: Memorex.Domain.Card.t(),
  time_to_answer :: Timex.Duration.t() | nil
) :: t()