Class: Bio::GFFbrowser::FastaRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/db/gff/gff3fasta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, seq) ⇒ FastaRecord

Returns a new instance of FastaRecord.



10
11
12
13
# File 'lib/bio/db/gff/gff3fasta.rb', line 10

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/bio/db/gff/gff3fasta.rb', line 8

def id
  @id
end

#seqObject (readonly)

Returns the value of attribute seq.



8
9
10
# File 'lib/bio/db/gff/gff3fasta.rb', line 8

def seq
  @seq
end

Instance Method Details

#entry_idObject



15
16
17
# File 'lib/bio/db/gff/gff3fasta.rb', line 15

def entry_id
  @id
end

#to_sObject



19
20
21
# File 'lib/bio/db/gff/gff3fasta.rb', line 19

def to_s
  @seq
end