Class: Ruby::Pomodoro::Worker

Inherits:
Object
  • Object
show all
Includes:
AASM, Observable, Singleton
Defined in:
lib/ruby/pomodoro/worker.rb

Overview

Singleton for work with tasks in application

Instance Attribute Summary collapse

Instance Attribute Details

#current_taskObject (readonly)

Returns the value of attribute current_task.



9
10
11
# File 'lib/ruby/pomodoro/worker.rb', line 9

def current_task
  @current_task
end

#pomodoro_sizeObject

Returns the value of attribute pomodoro_size.



10
11
12
# File 'lib/ruby/pomodoro/worker.rb', line 10

def pomodoro_size
  @pomodoro_size
end

#progressbarObject

Returns the value of attribute progressbar.



10
11
12
# File 'lib/ruby/pomodoro/worker.rb', line 10

def progressbar
  @progressbar
end

#time_intervalObject

Returns the value of attribute time_interval.



10
11
12
# File 'lib/ruby/pomodoro/worker.rb', line 10

def time_interval
  @time_interval
end