Method: BatchApi::Processor#initialize
- Defined in:
- lib/batch_api/processor.rb
#initialize(request, app) ⇒ Processor
Public: create a new Processor.
env - a Rack environment hash app - a Rack application
Raises OperationLimitExceeded if more operations are requested than allowed by the BatchApi configuration. Raises Errors::BadOptionError if other provided options are invalid. Raises ArgumentError if no operations are provided (nil or []).
Returns the new Processor instance.
19 20 21 22 23 24 25 |
# File 'lib/batch_api/processor.rb', line 19 def initialize(request, app) @app = app @request = request @env = request.env @ops = self.process_ops = self. end |