Class: ModSpox::Messages::Internal::PluginRequest

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

Instance Attribute Summary collapse

Attributes inherited from Request

#requester

Instance Method Summary collapse

Constructor Details

#initialize(object, name) ⇒ PluginRequest

object

object requesting

name

Name of plugin

Request plugin from bot



11
12
13
14
# File 'lib/mod_spox/messages/internal/PluginRequest.rb', line 11

def initialize(object, name)
    super(object)
    @plugin = name.is_a?(Symbol) ? name : name.to_sym
end

Instance Attribute Details

#pluginObject (readonly)

plugin requested



7
8
9
# File 'lib/mod_spox/messages/internal/PluginRequest.rb', line 7

def plugin
  @plugin
end