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