Class: Ms::Ident::Protein

Inherits:
Object
  • Object
show all
Defined in:
lib/ms/ident/protein.rb

Direct Known Subclasses

ProteinHit

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



12
13
14
# File 'lib/ms/ident/protein.rb', line 12

def description
  @description
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/ms/ident/protein.rb', line 7

def id
  @id
end

#seqObject 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