Class: Quorum::JobData

Inherits:
Object
  • Object
show all
Defined in:
app/models/quorum/job_data.rb

Instance Method Summary collapse

Constructor Details

#initializeJobData

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_resultsObject



12
13
14
# File 'app/models/quorum/job_data.rb', line 12

def no_results
  @data = [{ results: false }]
end

#not_enqueuedObject



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

#resultsObject



8
9
10
# File 'app/models/quorum/job_data.rb', line 8

def results
  @data
end