Module: Resque::Pertry::Persistence
- Extended by:
- ActiveSupport::Concern
- Included in:
- Resque::Plugins::Pertry
- Defined in:
- lib/resque/pertry/persistence.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#audit_id ⇒ Object
57 58 59 |
# File 'lib/resque/pertry/persistence.rb', line 57 def audit_id @_job_properties['audit_id'] end |
#model ⇒ Object
65 66 67 |
# File 'lib/resque/pertry/persistence.rb', line 65 def model @model ||= ResquePertryPersistence.find_by_audit_id(audit_id) end |
#queue_time ⇒ Object
61 62 63 |
# File 'lib/resque/pertry/persistence.rb', line 61 def queue_time Time.parse(@_job_properties['queue_time']) end |