Class: ChildProcess
- Inherits:
-
Object
- Object
- ChildProcess
- Defined in:
- lib/casual.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(action, parameters, session) ⇒ ChildProcess
constructor
A new instance of ChildProcess.
Constructor Details
#initialize(action, parameters, session) ⇒ ChildProcess
Returns a new instance of ChildProcess.
5 6 7 8 9 10 |
# File 'lib/casual.rb', line 5 def initialize(action, parameters, session) @file_descriptors = [] @action = action @params = parameters @session = session end |
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/casual.rb', line 12 def execute obj = Action.fire @action, @params, @session { session: obj.session, status_code: obj.status_code, content_type: obj.content_type, body: obj.body, } end |