Class: Rafflesia::SequenceSeedIndexVerifyData

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

Constant Summary collapse

HASH_ATTRS =
{
  checked_block_count: :checked_block_count,
  directory_object_id: :directory_object_id,
  index_id: :index_id,
  is_block_check_complete: :is_block_check_complete,
  is_directory_readable: :is_directory_readable,
  is_manifest_readable: :is_manifest_readable,
  manifest_object_id: :manifest_object_id,
  missing_block_count: :missing_block_count,
  payload_block_count: :payload_block_count,
  posting_block_count: :posting_block_count,
  warnings: :warnings
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceSeedIndexVerifyData

Returns a new instance of SequenceSeedIndexVerifyData.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 35

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @checked_block_count = hash[:checked_block_count]
  @directory_object_id = hash[:directory_object_id]
  @index_id = hash[:index_id]
  @is_block_check_complete = hash[:is_block_check_complete]
  @is_directory_readable = hash[:is_directory_readable]
  @is_manifest_readable = hash[:is_manifest_readable]
  @manifest_object_id = hash[:manifest_object_id]
  @missing_block_count = hash[:missing_block_count]
  @payload_block_count = hash[:payload_block_count]
  @posting_block_count = hash[:posting_block_count]
  @warnings = (hash[:warnings] || [])
end

Instance Attribute Details

#checked_block_countObject

Returns the value of attribute checked_block_count.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def checked_block_count
  @checked_block_count
end

#directory_object_idObject

Returns the value of attribute directory_object_id.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def directory_object_id
  @directory_object_id
end

#index_idObject

Returns the value of attribute index_id.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def index_id
  @index_id
end

#is_block_check_completeObject

Returns the value of attribute is_block_check_complete.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def is_block_check_complete
  @is_block_check_complete
end

#is_directory_readableObject

Returns the value of attribute is_directory_readable.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def is_directory_readable
  @is_directory_readable
end

#is_manifest_readableObject

Returns the value of attribute is_manifest_readable.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def is_manifest_readable
  @is_manifest_readable
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def manifest_object_id
  @manifest_object_id
end

#missing_block_countObject

Returns the value of attribute missing_block_count.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def missing_block_count
  @missing_block_count
end

#payload_block_countObject

Returns the value of attribute payload_block_count.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def payload_block_count
  @payload_block_count
end

#posting_block_countObject

Returns the value of attribute posting_block_count.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def posting_block_count
  @posting_block_count
end

#warningsObject

Returns the value of attribute warnings.



22
23
24
# File 'lib/rafflesia/sequences/sequence_seed_index_verify_data.rb', line 22

def warnings
  @warnings
end