Class: FastaRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-table/parsers/fastareader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, descr, seq) ⇒ FastaRecord

Returns a new instance of FastaRecord.



8
9
10
11
12
# File 'lib/bio-table/parsers/fastareader.rb', line 8

def initialize id, descr, seq
  @id = id
  @descr = descr
  @seq = seq
end

Instance Attribute Details

#descrObject

Returns the value of attribute descr.



6
7
8
# File 'lib/bio-table/parsers/fastareader.rb', line 6

def descr
  @descr
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/bio-table/parsers/fastareader.rb', line 6

def id
  @id
end

#seqObject

Returns the value of attribute seq.



6
7
8
# File 'lib/bio-table/parsers/fastareader.rb', line 6

def seq
  @seq
end