Class: SomTimer::Rest

Inherits:
Object
  • Object
show all
Defined in:
lib/som_timer/poros/rest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_selectedObject (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_intervalObject (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

#idObject (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_1Object (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
  @mood_rating_1
end

#mood_rating_2Object (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
  @mood_rating_2
end

#rest_intervalObject (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