Module: Api::Messages::FlowcellIO::ControlLaneExtensions

Included in:
ControlRequest
Defined in:
app/models/api/messages/flowcell_io.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'app/models/api/messages/flowcell_io.rb', line 92

def self.included(base)
  base.class_eval do
    delegate :position, to: :batch_request

    def mx_library
      asset.external_identifier || 'UNKNOWN'
    end

    def manual_qc
      MANUAL_QC_BOOLS[target_asset.try(:qc_state)]
    end

    def lane_samples
      []
    end

    def product_line
      nil
    end

    def spiked_in_buffer
      false
    end

    def external_release
      false
    end

    def controls
      asset.aliquots
    end

    def lane_identifier
      'control_lane'
    end
  end
end