Module: ActiveRpc

Defined in:
lib/active_rpc.rb,
lib/active_rpc/engine.rb,
lib/active_rpc/errors.rb,
lib/active_rpc/request.rb,
lib/active_rpc/version.rb,
lib/active_rpc/response.rb,
lib/active_rpc/operation.rb,
lib/active_rpc/rack_server.rb,
lib/active_rpc/configuration.rb,
app/controllers/active_rpc/rpc_controller.rb

Defined Under Namespace

Modules: Errors Classes: Configuration, Engine, Error, Operation, OperationFailure, RackServer, Request, Response, RpcController

Constant Summary collapse

VERSION =
'0.3.1'

Class Method Summary collapse

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:

  • (config)


11
12
13
14
# File 'lib/active_rpc.rb', line 11

def self.configure
  self.config ||= Configuration.new
  yield(config)
end

.get_executor(method) ⇒ Object



17
18
19
# File 'lib/active_rpc.rb', line 17

def self.get_executor(method)
  operation_map[method]
end

.operation_mapObject



21
22
23
# File 'lib/active_rpc.rb', line 21

def self.operation_map
  @operation_map ||= {}
end