Class: ModSpox::Messages::Internal::TimerClear

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/internal/TimerClear.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plugin = nil) ⇒ TimerClear

Returns a new instance of TimerClear.



6
7
8
9
10
11
12
# File 'lib/mod_spox/messages/internal/TimerClear.rb', line 6

def initialize(plugin=nil)
    if(plugin.nil?)
        @plugin = nil
    else
        @plugin = plugin.is_a?(ModSpox::Plugin) ? plugin.name.to_sym : plugin.to_sym
    end
end

Instance Attribute Details

#pluginObject (readonly)

Returns the value of attribute plugin.



5
6
7
# File 'lib/mod_spox/messages/internal/TimerClear.rb', line 5

def plugin
  @plugin
end