Class: Rafflesia::SequenceSeedIndexWalAppendRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  index_id: :index_id,
  input_object_id: :input_object_id,
  input_path: :input_path,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  name: :name,
  records: :records,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceSeedIndexWalAppendRequest

Returns a new instance of SequenceSeedIndexWalAppendRequest.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 29

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @index_id = hash[:index_id]
  @input_object_id = hash[:input_object_id]
  @input_path = hash[:input_path]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @name = hash[:name]
  @records = (hash[:records] || []).map { |item| item ? Rafflesia::SequenceSeedIndexWalRecord.new(item) : nil }
  @version = hash[:version]
end

Instance Attribute Details

#index_idObject

Returns the value of attribute index_id.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def index_id
  @index_id
end

#input_object_idObject

Returns the value of attribute input_object_id.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def input_object_id
  @input_object_id
end

#input_pathObject

Returns the value of attribute input_path.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def input_path
  @input_path
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def manifest_path
  @manifest_path
end

#nameObject

Returns the value of attribute name.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def name
  @name
end

#recordsObject

Returns the value of attribute records.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def records
  @records
end

#versionObject

Returns the value of attribute version.



19
20
21
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_append_request.rb', line 19

def version
  @version
end