Class: Rafflesia::SequenceSeedIndexWalManifest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexWalManifest
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb
Constant Summary collapse
- HASH_ATTRS =
{ base_index_id: :base_index_id, created_at: :created_at, delete_count: :delete_count, kind: :kind, kmer_size: :kmer_size, name: :name, record_count: :record_count, records: :records, residue_count: :residue_count, schema_version: :schema_version, upsert_count: :upsert_count, version: :version, wal_id: :wal_id }.freeze
Instance Attribute Summary collapse
-
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#delete_count ⇒ Object
Returns the value of attribute delete_count.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
-
#name ⇒ Object
Returns the value of attribute name.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#records ⇒ Object
Returns the value of attribute records.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#upsert_count ⇒ Object
Returns the value of attribute upsert_count.
-
#version ⇒ Object
Returns the value of attribute version.
-
#wal_id ⇒ Object
Returns the value of attribute wal_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexWalManifest
constructor
A new instance of SequenceSeedIndexWalManifest.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexWalManifest
Returns a new instance of SequenceSeedIndexWalManifest.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @base_index_id = hash[:base_index_id] @created_at = hash[:created_at] @delete_count = hash[:delete_count] @kind = hash[:kind] @kmer_size = hash[:kmer_size] @name = hash[:name] @record_count = hash[:record_count] @records = (hash[:records] || []).map { |item| item ? Rafflesia::SequenceSeedIndexWalRecord.new(item) : nil } @residue_count = hash[:residue_count] @schema_version = hash[:schema_version] @upsert_count = hash[:upsert_count] @version = hash[:version] @wal_id = hash[:wal_id] end |
Instance Attribute Details
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def base_index_id @base_index_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def created_at @created_at end |
#delete_count ⇒ Object
Returns the value of attribute delete_count.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def delete_count @delete_count end |
#kind ⇒ Object
Returns the value of attribute kind.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def kind @kind end |
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def kmer_size @kmer_size end |
#name ⇒ Object
Returns the value of attribute name.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def name @name end |
#record_count ⇒ Object
Returns the value of attribute record_count.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def record_count @record_count end |
#records ⇒ Object
Returns the value of attribute records.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def records @records end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def residue_count @residue_count end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def schema_version @schema_version end |
#upsert_count ⇒ Object
Returns the value of attribute upsert_count.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def upsert_count @upsert_count end |
#version ⇒ Object
Returns the value of attribute version.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def version @version end |
#wal_id ⇒ Object
Returns the value of attribute wal_id.
24 25 26 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_manifest.rb', line 24 def wal_id @wal_id end |