Class: Rafflesia::SequenceSeedIndexWalAppendData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexWalAppendData
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ base_index_id: :base_index_id, delete_count: :delete_count, record_count: :record_count, residue_count: :residue_count, upsert_count: :upsert_count, wal: :wal, wal_id: :wal_id, wal_object: :wal_object }.freeze
Instance Attribute Summary collapse
-
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
-
#delete_count ⇒ Object
Returns the value of attribute delete_count.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#upsert_count ⇒ Object
Returns the value of attribute upsert_count.
-
#wal ⇒ Object
Returns the value of attribute wal.
-
#wal_id ⇒ Object
Returns the value of attribute wal_id.
-
#wal_object ⇒ Object
Returns the value of attribute wal_object.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexWalAppendData
constructor
A new instance of SequenceSeedIndexWalAppendData.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexWalAppendData
Returns a new instance of SequenceSeedIndexWalAppendData.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @base_index_id = hash[:base_index_id] @delete_count = hash[:delete_count] @record_count = hash[:record_count] @residue_count = hash[:residue_count] @upsert_count = hash[:upsert_count] @wal = hash[:wal] ? Rafflesia::SequenceSeedIndexWalManifest.new(hash[:wal]) : nil @wal_id = hash[:wal_id] @wal_object = hash[:wal_object] ? Rafflesia::ObjectRef.new(hash[:wal_object]) : nil end |
Instance Attribute Details
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def base_index_id @base_index_id end |
#delete_count ⇒ Object
Returns the value of attribute delete_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def delete_count @delete_count end |
#record_count ⇒ Object
Returns the value of attribute record_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def record_count @record_count end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def residue_count @residue_count end |
#upsert_count ⇒ Object
Returns the value of attribute upsert_count.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def upsert_count @upsert_count end |
#wal ⇒ Object
Returns the value of attribute wal.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def wal @wal end |
#wal_id ⇒ Object
Returns the value of attribute wal_id.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def wal_id @wal_id end |
#wal_object ⇒ Object
Returns the value of attribute wal_object.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_data.rb', line 19 def wal_object @wal_object end |