Fact

Parsed documentation:
View on GitHub
This model manage the facts (events)
=== Relations
has many {Happening}
=== Validates
* presence of {title}
* presence of {start_on}
* presence of {stop_on}

@!attribute [rw] id
  @return [Integer] unique identifier for {Fact}
@!attribute [rw] title
  @return [String] title of {Fact}
@!attribute [rw] where
  @return [string] where the {Fact} is located
@!attribute [rw] pinned
  @return [Boolean] [true] if this {Fact} has priority
@!attribute [rw] start_on
  @return [date] when start {Fact}
@!attribute [rw] stop_on
  @return [date] when end {Fact}
@!attribute [rw] happenings_count
  @return [Integer] counter cache for {Happening}
@!attribute [rw] created_at
  @return [DateTime] when the record was created
@!attribute [rw] updated_at
  @return [DateTime] when the record was updated

@!method self.future()
  @return [Array] list of [Fact] with stop_on egual or greather than Time.zone.today, ordered by pinnes asc, stop_on asc
@!method self.history()
  @return [Array] list of [Fact] with stop_on minor than Time.zone.today, ordered by start_on desc
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.