Class: Thought
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Thought
- Defined in:
- app/models/thought.rb
Overview
A thought recorded by a Participant.
Constant Summary collapse
- EFFECTS =
{ helpful: "helpful", harmful: "harmful", neither: "neither" }.freeze
- IDENTIFIED =
"Identified"
- ASSIGNED_A_PATTERN =
"Assigned a pattern to"
- RESHAPED =
"Reshaped"
Instance Method Summary collapse
Instance Method Details
#shared_description ⇒ Object
65 66 67 |
# File 'app/models/thought.rb', line 65 def shared_description "Thought: #{content}" end |
#status_label ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'app/models/thought.rb', line 55 def status_label if !pattern_id && !challenging_thought IDENTIFIED elsif pattern_id && !challenging_thought ASSIGNED_A_PATTERN elsif challenging_thought RESHAPED end end |