Class: Rafflesia::SequenceSeedIndexInspectData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexInspectData
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ content_sha256: :content_sha_256, dataset_name: :dataset_name, dataset_version: :dataset_version, directory_object: :directory_object, distinct_kmer_count: :distinct_kmer_count, fasta_object: :fasta_object, index_id: :index_id, kmer_size: :kmer_size, manifest: :manifest, manifest_object: :manifest_object, name: :name, payload_block_count: :payload_block_count, payload_block_size: :payload_block_size, payload_lite: :payload_lite, posting_block_count: :posting_block_count, posting_block_size: :posting_block_size, registry_record: :registry_record, residue_count: :residue_count, segment_count: :segment_count, segment_id: :segment_id, segment_level: :segment_level, segment_ordinal: :segment_ordinal, segments: :segments, sequence_count: :sequence_count, version: :version }.freeze
Instance Attribute Summary collapse
-
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#directory_object ⇒ Object
Returns the value of attribute directory_object.
-
#distinct_kmer_count ⇒ Object
Returns the value of attribute distinct_kmer_count.
-
#fasta_object ⇒ Object
Returns the value of attribute fasta_object.
-
#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.
-
#payload_block_count ⇒ Object
Returns the value of attribute payload_block_count.
-
#payload_block_size ⇒ Object
Returns the value of attribute payload_block_size.
-
#payload_lite ⇒ Object
Returns the value of attribute payload_lite.
-
#posting_block_count ⇒ Object
Returns the value of attribute posting_block_count.
-
#posting_block_size ⇒ Object
Returns the value of attribute posting_block_size.
-
#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.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#segment_level ⇒ Object
Returns the value of attribute segment_level.
-
#segment_ordinal ⇒ Object
Returns the value of attribute segment_ordinal.
-
#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) ⇒ SequenceSeedIndexInspectData
constructor
A new instance of SequenceSeedIndexInspectData.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexInspectData
Returns a new instance of SequenceSeedIndexInspectData.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 63 def initialize(json) super() hash = self.class.normalize(json) @content_sha_256 = hash[:content_sha256] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @directory_object = hash[:directory_object] ? Rafflesia::ObjectRef.new(hash[:directory_object]) : nil @distinct_kmer_count = hash[:distinct_kmer_count] @fasta_object = hash[:fasta_object] ? Rafflesia::ObjectRef.new(hash[:fasta_object]) : nil @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] @payload_block_count = hash[:payload_block_count] @payload_block_size = hash[:payload_block_size] @payload_lite = hash[:payload_lite] @posting_block_count = hash[:posting_block_count] @posting_block_size = hash[:posting_block_size] @registry_record = hash[:registry_record] ? Rafflesia::SequenceSeedIndexRegistryRecord.new(hash[:registry_record]) : nil @residue_count = hash[:residue_count] @segment_count = hash[:segment_count] @segment_id = hash[:segment_id] @segment_level = hash[:segment_level] @segment_ordinal = hash[:segment_ordinal] @segments = (hash[:segments] || []).map { |item| item ? Rafflesia::SequenceSeedIndexSegmentRef.new(item) : nil } @sequence_count = hash[:sequence_count] @version = hash[:version] end |
Instance Attribute Details
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def content_sha_256 @content_sha_256 end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def dataset_version @dataset_version end |
#directory_object ⇒ Object
Returns the value of attribute directory_object.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def directory_object @directory_object end |
#distinct_kmer_count ⇒ Object
Returns the value of attribute distinct_kmer_count.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def distinct_kmer_count @distinct_kmer_count end |
#fasta_object ⇒ Object
Returns the value of attribute fasta_object.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def fasta_object @fasta_object end |
#index_id ⇒ Object
Returns the value of attribute index_id.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def index_id @index_id end |
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def kmer_size @kmer_size end |
#manifest ⇒ Object
Returns the value of attribute manifest.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def manifest @manifest end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def manifest_object @manifest_object end |
#name ⇒ Object
Returns the value of attribute name.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def name @name end |
#payload_block_count ⇒ Object
Returns the value of attribute payload_block_count.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def payload_block_count @payload_block_count end |
#payload_block_size ⇒ Object
Returns the value of attribute payload_block_size.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def payload_block_size @payload_block_size end |
#payload_lite ⇒ Object
Returns the value of attribute payload_lite.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def payload_lite @payload_lite end |
#posting_block_count ⇒ Object
Returns the value of attribute posting_block_count.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def posting_block_count @posting_block_count end |
#posting_block_size ⇒ Object
Returns the value of attribute posting_block_size.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def posting_block_size @posting_block_size end |
#registry_record ⇒ Object
Returns the value of attribute registry_record.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def registry_record @registry_record end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def residue_count @residue_count end |
#segment_count ⇒ Object
Returns the value of attribute segment_count.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def segment_count @segment_count end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def segment_id @segment_id end |
#segment_level ⇒ Object
Returns the value of attribute segment_level.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def segment_level @segment_level end |
#segment_ordinal ⇒ Object
Returns the value of attribute segment_ordinal.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def segment_ordinal @segment_ordinal end |
#segments ⇒ Object
Returns the value of attribute segments.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def segments @segments end |
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def sequence_count @sequence_count end |
#version ⇒ Object
Returns the value of attribute version.
36 37 38 |
# File 'lib/rafflesia/sequences/sequence_seed_index_inspect_data.rb', line 36 def version @version end |