Class: Thought

Inherits:
ActiveRecord::Base
  • Object
show all
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_descriptionObject



65
66
67
# File 'app/models/thought.rb', line 65

def shared_description
  "Thought: #{content}"
end

#status_labelObject



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