Class: Slnky::Service::Periodic
- Inherits:
-
Object
- Object
- Slnky::Service::Periodic
- Defined in:
- lib/slnky/service/timer.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#seconds ⇒ Object
readonly
Returns the value of attribute seconds.
Instance Method Summary collapse
-
#initialize(seconds, method) ⇒ Periodic
constructor
A new instance of Periodic.
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
#method ⇒ Object (readonly)
Returns the value of attribute method.
37 38 39 |
# File 'lib/slnky/service/timer.rb', line 37 def method @method end |
#seconds ⇒ Object (readonly)
Returns the value of attribute seconds.
36 37 38 |
# File 'lib/slnky/service/timer.rb', line 36 def seconds @seconds end |