Class: EmotionalRating

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/emotional_rating.rb

Overview

Participants no longer rate their emotions, they rate emotional ratings These are objects tied to emotions - giving participants the opportunity to rate the same emotion multiple times.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#name=(value) ⇒ Object (writeonly)

Sets the attribute name

Parameters:

  • value

    the value to set the attribute name to.



14
15
16
# File 'app/models/emotional_rating.rb', line 14

def name=(value)
  @name = value
end

Class Method Details

.attribute_namesObject



35
36
37
# File 'app/models/emotional_rating.rb', line 35

def self.attribute_names
  super.concat ["name"]
end

Instance Method Details

#rating_valueObject



31
32
33
# File 'app/models/emotional_rating.rb', line 31

def rating_value
  Values::EmotionalRating.from_rating(rating).to_s
end