Class: ModSpox::Messages::Internal::PluginResponse

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

Instance Attribute Summary collapse

Attributes inherited from Response

#origin

Instance Method Summary collapse

Constructor Details

#initialize(object, plugin) ⇒ PluginResponse

plugin

Plugin to send to requester

Sends a plugin to requesting object



10
11
12
13
# File 'lib/mod_spox/messages/internal/PluginResponse.rb', line 10

def initialize(object, plugin)
    super(object)
    @plugin = plugin
end

Instance Attribute Details

#pluginObject (readonly)

plugin object



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

def plugin
  @plugin
end

Instance Method Details

#found?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/mod_spox/messages/internal/PluginResponse.rb', line 15

def found?
    return !@plugin.nil?
end