Class: Rafflesia::FoldCollectionGcData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldCollectionGcData
- Defined in:
- lib/rafflesia/proteins/fold_collection_gc_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_segment_refs: :candidate_segment_refs, fold_segment_gc: :fold_segment_gc, keep_segment_refs: :keep_segment_refs, resolved_candidate_refs: :resolved_candidate_refs, resolved_keep_refs: :resolved_keep_refs }.freeze
Instance Attribute Summary collapse
-
#candidate_segment_refs ⇒ Object
Returns the value of attribute candidate_segment_refs.
-
#fold_segment_gc ⇒ Object
Returns the value of attribute fold_segment_gc.
-
#keep_segment_refs ⇒ Object
Returns the value of attribute keep_segment_refs.
-
#resolved_candidate_refs ⇒ Object
Returns the value of attribute resolved_candidate_refs.
-
#resolved_keep_refs ⇒ Object
Returns the value of attribute resolved_keep_refs.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldCollectionGcData
constructor
A new instance of FoldCollectionGcData.
Constructor Details
#initialize(json) ⇒ FoldCollectionGcData
Returns a new instance of FoldCollectionGcData.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/proteins/fold_collection_gc_data.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @candidate_segment_refs = (hash[:candidate_segment_refs] || []) @fold_segment_gc = hash[:fold_segment_gc] ? Rafflesia::FoldSegmentGcData.new(hash[:fold_segment_gc]) : nil @keep_segment_refs = (hash[:keep_segment_refs] || []) @resolved_candidate_refs = (hash[:resolved_candidate_refs] || []) @resolved_keep_refs = (hash[:resolved_keep_refs] || []) end |
Instance Attribute Details
#candidate_segment_refs ⇒ Object
Returns the value of attribute candidate_segment_refs.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_collection_gc_data.rb', line 16 def candidate_segment_refs @candidate_segment_refs end |
#fold_segment_gc ⇒ Object
Returns the value of attribute fold_segment_gc.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_collection_gc_data.rb', line 16 def fold_segment_gc @fold_segment_gc end |
#keep_segment_refs ⇒ Object
Returns the value of attribute keep_segment_refs.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_collection_gc_data.rb', line 16 def keep_segment_refs @keep_segment_refs end |
#resolved_candidate_refs ⇒ Object
Returns the value of attribute resolved_candidate_refs.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_collection_gc_data.rb', line 16 def resolved_candidate_refs @resolved_candidate_refs end |
#resolved_keep_refs ⇒ Object
Returns the value of attribute resolved_keep_refs.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_collection_gc_data.rb', line 16 def resolved_keep_refs @resolved_keep_refs end |