Class: Rafflesia::SequenceSeedIndexWalAppendRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexWalAppendRequest
- 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
-
#index_id ⇒ Object
Returns the value of attribute index_id.
-
#input_object_id ⇒ Object
Returns the value of attribute input_object_id.
-
#input_path ⇒ Object
Returns the value of attribute input_path.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#records ⇒ Object
Returns the value of attribute records.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexWalAppendRequest
constructor
A new instance of SequenceSeedIndexWalAppendRequest.
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_id ⇒ Object
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_id ⇒ Object
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_path ⇒ Object
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_id ⇒ Object
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_path ⇒ Object
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 |
#name ⇒ Object
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 |
#records ⇒ Object
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 |
#version ⇒ Object
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 |