Class: Rafflesia::SequenceSeedIndexCompactData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexCompactData
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_compact_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ base_index_id: :base_index_id, built_index: :built_index, compaction_input_refs: :compaction_input_refs, index_id: :index_id, input_segment_count: :input_segment_count, name: :name, residue_count: :residue_count, segment: :segment, segment_count: :segment_count, segment_id: :segment_id, segment_level: :segment_level, sequence_count: :sequence_count, version: :version, wal_object_ids: :wal_object_ids, wal_record_count: :wal_record_count }.freeze
Instance Attribute Summary collapse
-
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
-
#built_index ⇒ Object
Returns the value of attribute built_index.
-
#compaction_input_refs ⇒ Object
Returns the value of attribute compaction_input_refs.
-
#index_id ⇒ Object
Returns the value of attribute index_id.
-
#input_segment_count ⇒ Object
Returns the value of attribute input_segment_count.
-
#name ⇒ Object
Returns the value of attribute name.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#segment ⇒ Object
Returns the value of attribute segment.
-
#segment_count ⇒ Object
Returns the value of attribute segment_count.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#segment_level ⇒ Object
Returns the value of attribute segment_level.
-
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
-
#version ⇒ Object
Returns the value of attribute version.
-
#wal_object_ids ⇒ Object
Returns the value of attribute wal_object_ids.
-
#wal_record_count ⇒ Object
Returns the value of attribute wal_record_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexCompactData
constructor
A new instance of SequenceSeedIndexCompactData.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexCompactData
Returns a new instance of SequenceSeedIndexCompactData.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @base_index_id = hash[:base_index_id] @built_index = hash[:built_index] ? Rafflesia::SequenceSeedIndexBuildData.new(hash[:built_index]) : nil @compaction_input_refs = (hash[:compaction_input_refs] || []).map { |item| item ? Rafflesia::SequenceSeedIndexSegmentRef.new(item) : nil } @index_id = hash[:index_id] @input_segment_count = hash[:input_segment_count] @name = hash[:name] @residue_count = hash[:residue_count] @segment = hash[:segment] ? Rafflesia::SequenceSeedIndexSegmentRef.new(hash[:segment]) : nil @segment_count = hash[:segment_count] @segment_id = hash[:segment_id] @segment_level = hash[:segment_level] @sequence_count = hash[:sequence_count] @version = hash[:version] @wal_object_ids = (hash[:wal_object_ids] || []) @wal_record_count = hash[:wal_record_count] end |
Instance Attribute Details
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def base_index_id @base_index_id end |
#built_index ⇒ Object
Returns the value of attribute built_index.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def built_index @built_index end |
#compaction_input_refs ⇒ Object
Returns the value of attribute compaction_input_refs.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def compaction_input_refs @compaction_input_refs end |
#index_id ⇒ Object
Returns the value of attribute index_id.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def index_id @index_id end |
#input_segment_count ⇒ Object
Returns the value of attribute input_segment_count.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def input_segment_count @input_segment_count end |
#name ⇒ Object
Returns the value of attribute name.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def name @name end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def residue_count @residue_count end |
#segment ⇒ Object
Returns the value of attribute segment.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def segment @segment end |
#segment_count ⇒ Object
Returns the value of attribute segment_count.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def segment_count @segment_count end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def segment_id @segment_id end |
#segment_level ⇒ Object
Returns the value of attribute segment_level.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def segment_level @segment_level end |
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def sequence_count @sequence_count end |
#version ⇒ Object
Returns the value of attribute version.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def version @version end |
#wal_object_ids ⇒ Object
Returns the value of attribute wal_object_ids.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def wal_object_ids @wal_object_ids end |
#wal_record_count ⇒ Object
Returns the value of attribute wal_record_count.
26 27 28 |
# File 'lib/rafflesia/sequences/sequence_seed_index_compact_data.rb', line 26 def wal_record_count @wal_record_count end |