Class: ExampleProcess

Inherits:
AsyncProcess show all
Defined in:
lib/sinatra/extensions/processmanager.rb

Instance Attribute Summary collapse

Attributes inherited from AsyncProcess

#handler

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



10
11
12
# File 'lib/sinatra/extensions/processmanager.rb', line 10

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id.



10
11
12
# File 'lib/sinatra/extensions/processmanager.rb', line 10

def id
  @id
end

#interruptedObject (readonly)

Returns the value of attribute interrupted.



10
11
12
# File 'lib/sinatra/extensions/processmanager.rb', line 10

def interrupted
  @interrupted
end

#logObject (readonly)

Returns the value of attribute log.



10
11
12
# File 'lib/sinatra/extensions/processmanager.rb', line 10

def log
  @log
end

#nameObject (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

.nameObject



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