Class: UnderRepWellCommentsToBroadcast::UnderRepWellComment

Inherits:
Object
  • Object
show all
Defined in:
app/models/under_rep_well_comments_to_broadcast.rb

Overview

Represents a single “under-represented” well comment, holding metadata about its batch, position, tag index, and associated poly_metadatum.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(poly_metadatum:, batch_id:, position:, tag_index:) ⇒ UnderRepWellComment

Returns a new instance of UnderRepWellComment.



28
29
30
31
32
33
# File 'app/models/under_rep_well_comments_to_broadcast.rb', line 28

def initialize(poly_metadatum:, batch_id:, position:, tag_index:)
  @poly_metadatum = poly_metadatum
  @batch_id = batch_id
  @position = position
  @tag_index = tag_index
end

Instance Attribute Details

#batch_idInteger (readonly)

The ID of the batch this comment belongs to.

Returns:

  • (Integer)

    the current value of batch_id



25
26
27
# File 'app/models/under_rep_well_comments_to_broadcast.rb', line 25

def batch_id
  @batch_id
end

#poly_metadatumObject (readonly)

The metadata object describing the comment.

Returns:

  • (Object)

    the current value of poly_metadatum



25
26
27
# File 'app/models/under_rep_well_comments_to_broadcast.rb', line 25

def poly_metadatum
  @poly_metadatum
end

#positionInteger (readonly)

The lane or well position of the comment.

Returns:

  • (Integer)

    the current value of position



25
26
27
# File 'app/models/under_rep_well_comments_to_broadcast.rb', line 25

def position
  @position
end

#tag_indexInteger (readonly)

The tag index identifying the aliquot.

Returns:

  • (Integer)

    the current value of tag_index



25
26
27
# File 'app/models/under_rep_well_comments_to_broadcast.rb', line 25

def tag_index
  @tag_index
end