Class: Fastq
Overview
Fastq record
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#name ⇒ Object
Returns the value of attribute name.
-
#quality ⇒ Object
Returns the value of attribute quality.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Fastq
constructor
A new instance of Fastq.
- #to_s ⇒ Object
Methods inherited from Record
Constructor Details
#initialize(args = {}) ⇒ Fastq
Returns a new instance of Fastq.
78 79 80 81 82 |
# File 'lib/dna.rb', line 78 def initialize(args={}) @name = args[:name] @sequence = args[:sequence] @quality = args[:quality] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
76 77 78 |
# File 'lib/dna.rb', line 76 def format @format end |
#name ⇒ Object
Returns the value of attribute name.
76 77 78 |
# File 'lib/dna.rb', line 76 def name @name end |
#quality ⇒ Object
Returns the value of attribute quality.
76 77 78 |
# File 'lib/dna.rb', line 76 def quality @quality end |
#sequence ⇒ Object
Returns the value of attribute sequence.
76 77 78 |
# File 'lib/dna.rb', line 76 def sequence @sequence end |
Instance Method Details
#to_s ⇒ Object
84 85 86 |
# File 'lib/dna.rb', line 84 def to_s "@#{@name}\n#{@sequence}\n+#{@name}\n#{@quality}" end |