Class: ModSpox::Messages::Internal::TimerClear
- Inherits:
-
Object
- Object
- ModSpox::Messages::Internal::TimerClear
- Defined in:
- lib/mod_spox/messages/internal/TimerClear.rb
Instance Attribute Summary collapse
-
#plugin ⇒ Object
readonly
Returns the value of attribute plugin.
Instance Method Summary collapse
-
#initialize(plugin = nil) ⇒ TimerClear
constructor
A new instance of TimerClear.
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
#plugin ⇒ Object (readonly)
Returns the value of attribute plugin.
5 6 7 |
# File 'lib/mod_spox/messages/internal/TimerClear.rb', line 5 def plugin @plugin end |