Class: Rafflesia::GenomeIntervalsComplementData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::GenomeIntervalsComplementData
- Defined in:
- lib/rafflesia/genomes/genome_intervals_complement_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ assembly_id: :assembly_id, intervals: :intervals, row_count: :row_count, warnings: :warnings }.freeze
Instance Attribute Summary collapse
-
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
-
#intervals ⇒ Object
Returns the value of attribute intervals.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(json) ⇒ GenomeIntervalsComplementData
constructor
A new instance of GenomeIntervalsComplementData.
Constructor Details
#initialize(json) ⇒ GenomeIntervalsComplementData
Returns a new instance of GenomeIntervalsComplementData.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/genomes/genome_intervals_complement_data.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @assembly_id = hash[:assembly_id] @intervals = (hash[:intervals] || []).map { |item| item ? Rafflesia::GenomeInterval.new(item) : nil } @row_count = hash[:row_count] @warnings = (hash[:warnings] || []).map { |item| item ? Rafflesia::SearchWarning.new(item) : nil } end |
Instance Attribute Details
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
15 16 17 |
# File 'lib/rafflesia/genomes/genome_intervals_complement_data.rb', line 15 def assembly_id @assembly_id end |
#intervals ⇒ Object
Returns the value of attribute intervals.
15 16 17 |
# File 'lib/rafflesia/genomes/genome_intervals_complement_data.rb', line 15 def intervals @intervals end |
#row_count ⇒ Object
Returns the value of attribute row_count.
15 16 17 |
# File 'lib/rafflesia/genomes/genome_intervals_complement_data.rb', line 15 def row_count @row_count end |
#warnings ⇒ Object
Returns the value of attribute warnings.
15 16 17 |
# File 'lib/rafflesia/genomes/genome_intervals_complement_data.rb', line 15 def warnings @warnings end |