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.
10 11 12 |
# File 'lib/sinatra/extensions/processmanager.rb', line 10 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/sinatra/extensions/processmanager.rb', line 10 def id @id end |
#interrupted ⇒ Object (readonly)
Returns the value of attribute interrupted.
10 11 12 |
# File 'lib/sinatra/extensions/processmanager.rb', line 10 def interrupted @interrupted end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
10 11 12 |
# File 'lib/sinatra/extensions/processmanager.rb', line 10 def log @log end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/sinatra/extensions/processmanager.rb', line 10 def name @name end |
Class Method Details
.name ⇒ Object
12 13 14 |
# File 'lib/sinatra/extensions/processmanager.rb', line 12 def self.name "THE NAME" end |
Instance Method Details
#perform(handler, other_params) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/sinatra/extensions/processmanager.rb', line 16 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 |