Class: SomTimer::Rest
- Inherits:
-
Object
- Object
- SomTimer::Rest
- Defined in:
- lib/som_timer/poros/rest.rb
Instance Attribute Summary collapse
-
#content_selected ⇒ Object
readonly
Returns the value of attribute content_selected.
-
#focus_interval ⇒ Object
readonly
Returns the value of attribute focus_interval.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#mood_rating_1 ⇒ Object
readonly
Returns the value of attribute mood_rating_1.
-
#mood_rating_2 ⇒ Object
readonly
Returns the value of attribute mood_rating_2.
-
#rest_interval ⇒ Object
readonly
Returns the value of attribute rest_interval.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Rest
constructor
A new instance of Rest.
Constructor Details
#initialize(attributes) ⇒ Rest
Returns a new instance of Rest.
9 10 11 12 13 14 15 16 |
# File 'lib/som_timer/poros/rest.rb', line 9 def initialize(attributes) @id = attributes[:id] @mood_rating_1 = attributes[:mood_rating_1] @mood_rating_2 = attributes[:mood_rating_2] @content_selected = attributes[:content_selected] @focus_interval = attributes[:focus_interval] @rest_interval = attributes[:rest_interval] end |
Instance Attribute Details
#content_selected ⇒ Object (readonly)
Returns the value of attribute content_selected.
2 3 4 |
# File 'lib/som_timer/poros/rest.rb', line 2 def content_selected @content_selected end |
#focus_interval ⇒ Object (readonly)
Returns the value of attribute focus_interval.
2 3 4 |
# File 'lib/som_timer/poros/rest.rb', line 2 def focus_interval @focus_interval end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/som_timer/poros/rest.rb', line 2 def id @id end |
#mood_rating_1 ⇒ Object (readonly)
Returns the value of attribute mood_rating_1.
2 3 4 |
# File 'lib/som_timer/poros/rest.rb', line 2 def @mood_rating_1 end |
#mood_rating_2 ⇒ Object (readonly)
Returns the value of attribute mood_rating_2.
2 3 4 |
# File 'lib/som_timer/poros/rest.rb', line 2 def @mood_rating_2 end |
#rest_interval ⇒ Object (readonly)
Returns the value of attribute rest_interval.
2 3 4 |
# File 'lib/som_timer/poros/rest.rb', line 2 def rest_interval @rest_interval end |