Class: GenerateCreateAssetRequestsJob
- Inherits:
-
Struct
- Object
- Struct
- GenerateCreateAssetRequestsJob
- 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
-
#asset_ids ⇒ Object
Returns the value of attribute asset_ids.
-
#study_id ⇒ Object
Returns the value of attribute study_id.
Instance Method Summary collapse
Instance Attribute Details
#asset_ids ⇒ Object
Returns the value of attribute asset_ids
5 6 7 |
# File 'app/jobs/generate_create_asset_requests_job.rb', line 5 def asset_ids @asset_ids end |
#study_id ⇒ Object
Returns the value of attribute study_id
5 6 7 |
# File 'app/jobs/generate_create_asset_requests_job.rb', line 5 def study_id @study_id end |
Instance Method Details
#perform ⇒ Object
7 8 9 |
# File 'app/jobs/generate_create_asset_requests_job.rb', line 7 def perform RequestFactory.create_assets_requests(Receptacle.find(asset_ids), Study.find(study_id)) end |