Class: TomatoHarvest::Pomodoro

Inherits:
Object
  • Object
show all
Defined in:
lib/tomatoharvest/pomodoro.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

Returns the value of attribute finished_at.



3
4
5
# File 'lib/tomatoharvest/pomodoro.rb', line 3

def finished_at
  @finished_at
end

#secondsObject

Returns the value of attribute seconds.



3
4
5
# File 'lib/tomatoharvest/pomodoro.rb', line 3

def seconds
  @seconds
end