Module: Api::Messages::FlowcellIo::ControlLaneExtensions

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

Overview

Included in ControlRequest model

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

rubocop:todo Metrics/MethodLength



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'app/models/api/messages/flowcell_io.rb', line 105

def self.included(base) # rubocop:todo Metrics/MethodLength
  base.class_eval do
    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 spiked_phix_barcode
      nil
    end

    def spiked_phix_percentage
      nil
    end

    def loading_concentration
      nil
    end

    def workflow
      nil
    end

    def external_release
      false
    end

    def controls
      asset.aliquots
    end

    def lane_identifier
      'control_lane'
    end
  end
end