Class: Omen::Reading

Inherits:
Object
  • Object
show all
Includes:
Asked, Executed, Narrowed, Stated
Defined in:
app/models/omen/reading.rb

Overview

A thread of questions somebody asks Claude about the data this app holds.

Constant Summary

Constants included from Executed

Executed::REFUSED

Constants included from Stated

Stated::STALLED_AFTER, Stated::STATUSES

Instance Method Summary collapse

Methods included from Asked

#answering?, #ask

Methods included from Narrowed

#runs_as, #settings

Instance Method Details

#notes ⇒ String

Returns the host's notes about its data, as this reading's asker is told them.

Returns:

  • (String) —

    the host's notes about its data, as this reading's asker is told them.



20
# File 'app/models/omen/reading.rb', line 20

def notes = Omen.config.notes

#to_s ⇒ String

Returns the default representation (used in views).

Returns:

  • (String) —

    the default representation (used in views).



17
# File 'app/models/omen/reading.rb', line 17

def to_s = questions.first&.text.to_s.truncate 80