Class: Ms::Ident::ProteinHit
- Inherits:
-
Object
- Object
- Ms::Ident::ProteinHit
- Defined in:
- lib/ms/ident/protein_hit.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#peptide_hits ⇒ Object
Returns the value of attribute peptide_hits.
-
#seq ⇒ Object
(also: #sequence)
Returns the value of attribute seq.
Instance Method Summary collapse
-
#initialize(id = nil) ⇒ ProteinHit
constructor
A new instance of ProteinHit.
Constructor Details
#initialize(id = nil) ⇒ ProteinHit
Returns a new instance of ProteinHit.
12 13 14 15 |
# File 'lib/ms/ident/protein_hit.rb', line 12 def initialize(id=nil) @peptide_hits = [] @id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/ms/ident/protein_hit.rb', line 6 def id @id end |
#peptide_hits ⇒ Object
Returns the value of attribute peptide_hits.
10 11 12 |
# File 'lib/ms/ident/protein_hit.rb', line 10 def peptide_hits @peptide_hits end |
#seq ⇒ Object Also known as: sequence
Returns the value of attribute seq.
7 8 9 |
# File 'lib/ms/ident/protein_hit.rb', line 7 def seq @seq end |