Class: Slnky::Service::Periodic

Inherits:
Object
  • Object
show all
Defined in:
lib/slnky/service/timer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(seconds, method) ⇒ Periodic

Returns a new instance of Periodic.



39
40
41
42
# File 'lib/slnky/service/timer.rb', line 39

def initialize(seconds, method)
  @seconds = seconds
  @method = method
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



37
38
39
# File 'lib/slnky/service/timer.rb', line 37

def method
  @method
end

#secondsObject (readonly)

Returns the value of attribute seconds.



36
37
38
# File 'lib/slnky/service/timer.rb', line 36

def seconds
  @seconds
end