Class: DelayedPaperclip::Jobs::DelayedJob
- Inherits:
-
Struct
- Object
- Struct
- DelayedPaperclip::Jobs::DelayedJob
- Defined in:
- lib/delayed_paperclip/jobs/delayed_job.rb
Instance Attribute Summary collapse
-
#attachment_name ⇒ Object
Returns the value of attribute attachment_name.
-
#instance_id ⇒ Object
Returns the value of attribute instance_id.
-
#instance_klass ⇒ Object
Returns the value of attribute instance_klass.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#attachment_name ⇒ Object
Returns the value of attribute attachment_name
5 6 7 |
# File 'lib/delayed_paperclip/jobs/delayed_job.rb', line 5 def @attachment_name end |
#instance_id ⇒ Object
Returns the value of attribute instance_id
5 6 7 |
# File 'lib/delayed_paperclip/jobs/delayed_job.rb', line 5 def instance_id @instance_id end |
#instance_klass ⇒ Object
Returns the value of attribute instance_klass
5 6 7 |
# File 'lib/delayed_paperclip/jobs/delayed_job.rb', line 5 def instance_klass @instance_klass end |
Class Method Details
.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/delayed_paperclip/jobs/delayed_job.rb', line 9 def self.enqueue_delayed_paperclip(instance_klass, instance_id, ) ::Delayed::Job.enqueue( :payload_object => new(instance_klass, instance_id, ), :priority => instance_klass.constantize.[][:delayed][:priority].to_i ) end |
Instance Method Details
#perform ⇒ Object
27 28 29 |
# File 'lib/delayed_paperclip/jobs/delayed_job.rb', line 27 def perform DelayedPaperclip.process_job(instance_klass, instance_id, ) end |