Class: Vines::Services::Controller::DiscoInfoController

Inherits:
BaseController
  • Object
show all
Defined in:
lib/vines/services/controller/disco_info_controller.rb

Instance Attribute Summary

Attributes inherited from BaseController

#node, #storage, #stream, #uploads

Instance Method Summary collapse

Methods inherited from BaseController

#initialize, register

Constructor Details

This class inherits a constructor from Vines::Services::Controller::BaseController

Instance Method Details

#processObject



9
10
11
12
# File 'lib/vines/services/controller/disco_info_controller.rb', line 9

def process
  reply = (node.to == stream.jid) ? component : service
  stream.write(reply) if reply
end