Class: QueueProcessor::DependentCalculation::QueueControl::CalculationRequest
- Inherits:
-
Struct
- Object
- Struct
- QueueProcessor::DependentCalculation::QueueControl::CalculationRequest
- Defined in:
- lib/queue-processor/dependent_calculation/queue_control.rb
Instance Attribute Summary collapse
-
#clazz ⇒ Object
Returns the value of attribute clazz.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#id ⇒ Object
Returns the value of attribute id.
-
#queued_at ⇒ Object
Returns the value of attribute queued_at.
Instance Method Summary collapse
Instance Attribute Details
#clazz ⇒ Object
Returns the value of attribute clazz
38 39 40 |
# File 'lib/queue-processor/dependent_calculation/queue_control.rb', line 38 def clazz @clazz end |
#comment ⇒ Object
Returns the value of attribute comment
38 39 40 |
# File 'lib/queue-processor/dependent_calculation/queue_control.rb', line 38 def comment @comment end |
#id ⇒ Object
Returns the value of attribute id
38 39 40 |
# File 'lib/queue-processor/dependent_calculation/queue_control.rb', line 38 def id @id end |
#queued_at ⇒ Object
Returns the value of attribute queued_at
38 39 40 |
# File 'lib/queue-processor/dependent_calculation/queue_control.rb', line 38 def queued_at @queued_at end |
Instance Method Details
#display_name ⇒ Object
48 49 50 |
# File 'lib/queue-processor/dependent_calculation/queue_control.rb', line 48 def display_name comment end |
#perform ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/queue-processor/dependent_calculation/queue_control.rb', line 39 def perform obj = clazz.where(:id => id).first if obj.present? obj.process_queued_calculation else Rails.logger.warn("#{clazz.to_s} #{id}: does not exist") end end |