Class: GenerateCreateAssetRequestsJob

Inherits:
Struct
  • Object
show all
Defined in:
app/jobs/generate_create_asset_requests_job.rb

Overview

Generate CreateAssetRequests for the provided assets, linking them to the study. Currently used in Tube sample manifests. JG: Not entirely sure this is all that useful any more.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#asset_idsObject

Returns the value of attribute asset_ids


4
5
6
# File 'app/jobs/generate_create_asset_requests_job.rb', line 4

def asset_ids
  @asset_ids
end

#study_idObject

Returns the value of attribute study_id


4
5
6
# File 'app/jobs/generate_create_asset_requests_job.rb', line 4

def study_id
  @study_id
end

Instance Method Details

#performObject


5
6
7
# File 'app/jobs/generate_create_asset_requests_job.rb', line 5

def perform
  RequestFactory.create_assets_requests(Receptacle.find(asset_ids), Study.find(study_id))
end