Class: ExampleProcess

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

Instance Attribute Summary collapse

Attributes inherited from AsyncProcess

#handler, #user_id

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



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

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#interruptedObject (readonly)

Returns the value of attribute interrupted.



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

def interrupted
  @interrupted
end

#logObject (readonly)

Returns the value of attribute log.



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

def log
  @log
end

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

.nameObject



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