Class: Cinch::Plugin::ClassMethods::Timer

Inherits:
Struct
  • Object
show all
Defined in:
lib/cinch/plugin.rb

Overview

Note:

This is not the same as a Timer object, which will allow controlling and inspecting actually running timers. This class only describes a Timer that still has to be created.

Represents a Timer as created by #timer.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Numeric) interval

The current value of interval

Returns:

  • (Numeric)

    the current value of interval



103
104
105
# File 'lib/cinch/plugin.rb', line 103

def interval
  @interval
end

- (Hash) options

The current value of options

Returns:

  • (Hash)

    the current value of options



103
104
105
# File 'lib/cinch/plugin.rb', line 103

def options
  @options
end

- (Boolean) registered

The current value of registered

Returns:

  • (Boolean)

    the current value of registered



103
104
105
# File 'lib/cinch/plugin.rb', line 103

def registered
  @registered
end