Class: Rafflesia::SequenceSeedIndexMergeData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexMergeData
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_merge_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ dataset_name: :dataset_name, dataset_version: :dataset_version, index_id: :index_id, kmer_size: :kmer_size, manifest: :manifest, manifest_object: :manifest_object, name: :name, registry_record: :registry_record, residue_count: :residue_count, segment_count: :segment_count, segments: :segments, sequence_count: :sequence_count, version: :version }.freeze
Instance Attribute Summary collapse
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#index_id ⇒ Object
Returns the value of attribute index_id.
-
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#name ⇒ Object
Returns the value of attribute name.
-
#registry_record ⇒ Object
Returns the value of attribute registry_record.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#segment_count ⇒ Object
Returns the value of attribute segment_count.
-
#segments ⇒ Object
Returns the value of attribute segments.
-
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexMergeData
constructor
A new instance of SequenceSeedIndexMergeData.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexMergeData
Returns a new instance of SequenceSeedIndexMergeData.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @index_id = hash[:index_id] @kmer_size = hash[:kmer_size] @manifest = hash[:manifest] ? Rafflesia::SequenceSeedIndexManifest.new(hash[:manifest]) : nil @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @name = hash[:name] @registry_record = hash[:registry_record] ? Rafflesia::SequenceSeedIndexRegistryRecord.new(hash[:registry_record]) : nil @residue_count = hash[:residue_count] @segment_count = hash[:segment_count] @segments = (hash[:segments] || []).map { |item| item ? Rafflesia::SequenceSeedIndexSegmentRef.new(item) : nil } @sequence_count = hash[:sequence_count] @version = hash[:version] end |
Instance Attribute Details
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def dataset_version @dataset_version end |
#index_id ⇒ Object
Returns the value of attribute index_id.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def index_id @index_id end |
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def kmer_size @kmer_size end |
#manifest ⇒ Object
Returns the value of attribute manifest.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def manifest @manifest end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def manifest_object @manifest_object end |
#name ⇒ Object
Returns the value of attribute name.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def name @name end |
#registry_record ⇒ Object
Returns the value of attribute registry_record.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def registry_record @registry_record end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def residue_count @residue_count end |
#segment_count ⇒ Object
Returns the value of attribute segment_count.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def segment_count @segment_count end |
#segments ⇒ Object
Returns the value of attribute segments.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def segments @segments end |
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def sequence_count @sequence_count end |
#version ⇒ Object
Returns the value of attribute version.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_merge_data.rb', line 24 def version @version end |