Class: Delayed::Backend::Mock::Job
- Inherits:
-
Object
- Object
- Delayed::Backend::Mock::Job
- Includes:
- Base
- Defined in:
- lib/delayed/backend/mock.rb
Constant Summary collapse
- @@job_count =
0
Class Method Summary collapse
Class Method Details
.count ⇒ Object
13 14 15 |
# File 'lib/delayed/backend/mock.rb', line 13 def self.count @@job_count end |
.create(params) ⇒ Object
9 10 11 |
# File 'lib/delayed/backend/mock.rb', line 9 def self.create(params) @@job_count += 1 end |
.reset ⇒ Object
17 18 19 |
# File 'lib/delayed/backend/mock.rb', line 17 def self.reset @@job_count = 0 end |