Class: ModSpox::Messages::Internal::PluginLoadRequest

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

Direct Known Subclasses

PluginUnloadRequest

Instance Attribute Summary collapse

Attributes inherited from Request

#requester

Instance Method Summary collapse

Constructor Details

#initialize(object, path, name = nil) ⇒ PluginLoadRequest

object

object requesting the load

path

path to plugin file to be loaded

Loads a plugin located at the given path



13
14
15
16
17
# File 'lib/mod_spox/messages/internal/PluginLoadRequest.rb', line 13

def initialize(object, path, name=nil)
    super(object)
    @path = path
    @name = name
end

Instance Attribute Details

#nameObject (readonly)

file name for plugin



9
10
11
# File 'lib/mod_spox/messages/internal/PluginLoadRequest.rb', line 9

def name
  @name
end

#pathObject (readonly)

path to plugin file



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

def path
  @path
end