Class: Rafflesia::SequenceSeedIndexWalAppendData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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_countObject

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_countObject

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_countObject

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_countObject

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

#walObject

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_idObject

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_objectObject

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