Class: Vines::Services::Controller::MessagesController
- Inherits:
-
BaseController
- Object
- BaseController
- Vines::Services::Controller::MessagesController
- Defined in:
- lib/vines/services/controller/messages_controller.rb
Overview
Broadcast messages from a user to a group of systems (a.k.a. a service). Responses from the agents are routed back through the component so the user appears to be talking to just the service’s JID, not each and every agent that belongs to the service.
Constant Summary collapse
- NS =
'http://getvines.com/protocol'.freeze
Instance Attribute Summary
Attributes inherited from BaseController
#node, #storage, #stream, #uploads
Instance Method Summary collapse
Methods inherited from BaseController
Constructor Details
This class inherits a constructor from Vines::Services::Controller::BaseController
Instance Method Details
#process ⇒ Object
15 16 17 |
# File 'lib/vines/services/controller/messages_controller.rb', line 15 def process current_user.system? ? forward_to_user : forward_to_service end |