Class: Quorum::JobData
- Inherits:
-
Object
- Object
- Quorum::JobData
- Defined in:
- app/models/quorum/job_data.rb
Instance Method Summary collapse
-
#initialize ⇒ JobData
constructor
A new instance of JobData.
- #no_results ⇒ Object
- #not_enqueued ⇒ Object
- #results ⇒ Object
Constructor Details
#initialize ⇒ JobData
Returns a new instance of JobData.
4 5 6 |
# File 'app/models/quorum/job_data.rb', line 4 def initialize @data = [] end |
Instance Method Details
#no_results ⇒ Object
12 13 14 |
# File 'app/models/quorum/job_data.rb', line 12 def no_results @data = [{ results: false }] end |
#not_enqueued ⇒ Object
16 17 18 19 |
# File 'app/models/quorum/job_data.rb', line 16 def not_enqueued no_results @data = [{ enqueued: false }.merge(@data[0])] end |
#results ⇒ Object
8 9 10 |
# File 'app/models/quorum/job_data.rb', line 8 def results @data end |