Module: V1::Shared::RunSuitability

Extended by:
ActiveSupport::Concern
Included in:
Pacbio::AliquotResource, Pacbio::LibraryResource, Pacbio::PoolResource
Defined in:
app/resources/v1/shared/run_suitability.rb

Overview

Include in a resource to add the run suitability attribute which evalutates if the resource can be used to generate a run. It does this by:

Instance Method Summary collapse

Instance Method Details

#run_suitabilityObject



18
19
20
21
22
23
# File 'app/resources/v1/shared/run_suitability.rb', line 18

def run_suitability
  {
    ready_for_run: @model.valid?(:run_creation),
    errors: inline_errors_object
  }
end