Class: ExampleProcess
- Inherits:
-
AsyncProcess
- Object
- AsyncProcess
- ExampleProcess
- Defined in:
- lib/sinatra/extensions/processmanager.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#interrupted ⇒ Object
readonly
Returns the value of attribute interrupted.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from AsyncProcess
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
11 12 13 |
# File 'lib/sinatra/extensions/processmanager.rb', line 11 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/sinatra/extensions/processmanager.rb', line 11 def id @id end |
#interrupted ⇒ Object (readonly)
Returns the value of attribute interrupted.
11 12 13 |
# File 'lib/sinatra/extensions/processmanager.rb', line 11 def interrupted @interrupted end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
11 12 13 |
# File 'lib/sinatra/extensions/processmanager.rb', line 11 def log @log end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/sinatra/extensions/processmanager.rb', line 11 def name @name end |
Class Method Details
.name ⇒ Object
13 14 15 |
# File 'lib/sinatra/extensions/processmanager.rb', line 13 def self.name "THE NAME" end |
Instance Method Details
#perform(handler, other_params) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/sinatra/extensions/processmanager.rb', line 17 def perform(handler, other_params) @handler = handler @handler.total = params[:ids].count # loop # if error @handler.log("error no falta", e.message) # @handler.increase # end |