Class: TomatoHarvest::Pomodoro
- Inherits:
-
Object
- Object
- TomatoHarvest::Pomodoro
- Defined in:
- lib/tomatoharvest/pomodoro.rb
Instance Attribute Summary collapse
-
#finished_at ⇒ Object
Returns the value of attribute finished_at.
-
#seconds ⇒ Object
Returns the value of attribute seconds.
Instance Method Summary collapse
-
#initialize(seconds, finished_at) ⇒ Pomodoro
constructor
A new instance of Pomodoro.
Constructor Details
#initialize(seconds, finished_at) ⇒ Pomodoro
Returns a new instance of Pomodoro.
5 6 7 8 |
# File 'lib/tomatoharvest/pomodoro.rb', line 5 def initialize(seconds, finished_at) @seconds = seconds @finished_at = finished_at end |
Instance Attribute Details
#finished_at ⇒ Object
Returns the value of attribute finished_at.
3 4 5 |
# File 'lib/tomatoharvest/pomodoro.rb', line 3 def finished_at @finished_at end |
#seconds ⇒ Object
Returns the value of attribute seconds.
3 4 5 |
# File 'lib/tomatoharvest/pomodoro.rb', line 3 def seconds @seconds end |