Class: ExtDirect::Service::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ext_direct/service/base.rb

Class Method Summary collapse

Class Method Details

.polling_service(name, &proc) ⇒ Object



13
14
15
16
17
# File 'lib/ext_direct/service/base.rb', line 13

def polling_service(name, &proc)
  action = action_name_format(self.model_name)
  method = method_name_format(name)
  ExtDirect::Service::Provider.register(:polling, action, method, proc)
end

.service(name, &proc) ⇒ Object Also known as: remoting_service



5
6
7
8
9
# File 'lib/ext_direct/service/base.rb', line 5

def service(name, &proc)
  action = action_name_format(self.model_name)
  method = method_name_format(name)
  ExtDirect::Service::Provider.register(:remoting, action, method, proc)
end