Class: Hyperloop::ControllerOp

Inherits:
ServerOp show all
Defined in:
lib/hyper-operation/server_op.rb

Constant Summary

Constants inherited from Operation

Operation::VERSION

Instance Method Summary collapse

Methods inherited from ServerOp

#_dispatch_to, descendants_map_cache, deserialize_dispatch, deserialize_params, deserialize_response, dispatch_from_server, dispatch_to, handle_exception, remote, #run, run_from_client, serialize_dispatch, serialize_params, serialize_response

Methods inherited from Operation

_Railway, _run, #abort!, #add_error, add_error, async, fail, failed, #has_errors?, inbound, inherited, #initialize, on_dispatch, outbound, param, #params, run, step, #succeed!, then, validate

Constructor Details

This class inherits a constructor from Hyperloop::Operation

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object


171
172
173
174
175
176
177
# File 'lib/hyper-operation/server_op.rb', line 171

def method_missing(name, *args, &block)
  if params.controller.respond_to? name
    params.controller.send(name, *args, &block)
  else
    pre_controller_op_method_missing(name, *args, &block)
  end
end

Instance Method Details

#pre_controller_op_method_missingObject


170
# File 'lib/hyper-operation/server_op.rb', line 170

alias pre_controller_op_method_missing method_missing