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