class SomTimer::TimerFacade

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/som_timer/facades/timer_facade.rb, line 4
def initialize(path)
  @path = path
  @service = SomTimer::Service.new(@path)
end

Public Instance Methods

one_timer() click to toggle source
# File lib/som_timer/facades/timer_facade.rb, line 17
def one_timer
  SomTimer::Timer.new(response_timer)
end
response_timer() click to toggle source
# File lib/som_timer/facades/timer_facade.rb, line 9
def response_timer
  @service.timer
end
response_update_timer(work_interval, rest_interval, sound) click to toggle source
# File lib/som_timer/facades/timer_facade.rb, line 13
def response_update_timer(work_interval, rest_interval, sound)
  @service.update_timer(work_interval, rest_interval, sound)
end
update_timer(work_interval, rest_interval, sound) click to toggle source
# File lib/som_timer/facades/timer_facade.rb, line 21
def update_timer(work_interval, rest_interval, sound)
  SomTimer::Timer.new(response_update_timer(work_interval, rest_interval, sound))
end