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

Returns:

  • (Object)

    the current value of asset_ids



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

def asset_ids
  @asset_ids
end

#study_idObject

Returns the value of attribute study_id

Returns:

  • (Object)

    the current value of 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

#performObject



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