Class: Rafflesia::GenomeMergedInterval
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::GenomeMergedInterval
- Defined in:
- lib/rafflesia/genomes/genome_merged_interval.rb
Constant Summary collapse
- HASH_ATTRS =
{ contig: :contig, end: :end, length_bp: :length_bp, source_count: :source_count, source_names: :source_names, start: :start }.freeze
Instance Attribute Summary collapse
-
#contig ⇒ Object
Returns the value of attribute contig.
-
#end ⇒ Object
Returns the value of attribute end.
-
#length_bp ⇒ Object
Returns the value of attribute length_bp.
-
#source_count ⇒ Object
Returns the value of attribute source_count.
-
#source_names ⇒ Object
Returns the value of attribute source_names.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize(json) ⇒ GenomeMergedInterval
constructor
A new instance of GenomeMergedInterval.
Constructor Details
#initialize(json) ⇒ GenomeMergedInterval
Returns a new instance of GenomeMergedInterval.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/genomes/genome_merged_interval.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @contig = hash[:contig] @end = hash[:end] @length_bp = hash[:length_bp] @source_count = hash[:source_count] @source_names = (hash[:source_names] || []) @start = hash[:start] end |
Instance Attribute Details
#contig ⇒ Object
Returns the value of attribute contig.
17 18 19 |
# File 'lib/rafflesia/genomes/genome_merged_interval.rb', line 17 def contig @contig end |
#end ⇒ Object
Returns the value of attribute end.
17 18 19 |
# File 'lib/rafflesia/genomes/genome_merged_interval.rb', line 17 def end @end end |
#length_bp ⇒ Object
Returns the value of attribute length_bp.
17 18 19 |
# File 'lib/rafflesia/genomes/genome_merged_interval.rb', line 17 def length_bp @length_bp end |
#source_count ⇒ Object
Returns the value of attribute source_count.
17 18 19 |
# File 'lib/rafflesia/genomes/genome_merged_interval.rb', line 17 def source_count @source_count end |
#source_names ⇒ Object
Returns the value of attribute source_names.
17 18 19 |
# File 'lib/rafflesia/genomes/genome_merged_interval.rb', line 17 def source_names @source_names end |
#start ⇒ Object
Returns the value of attribute start.
17 18 19 |
# File 'lib/rafflesia/genomes/genome_merged_interval.rb', line 17 def start @start end |