Class: Rafflesia::BlastDbPublishData

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

Constant Summary collapse

HASH_ATTRS =
{
  artifact_count: :artifact_count,
  benchmark: :benchmark,
  benchmark_object_id: :benchmark_object_id,
  benchmark_passed: :benchmark_passed,
  manifest: :manifest,
  manifest_object: :manifest_object,
  manifest_path: :manifest_path,
  ref: :ref,
  registry_record: :registry_record,
  stored_object_count: :stored_object_count,
  total_size_bytes: :total_size_bytes
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BlastDbPublishData

Returns a new instance of BlastDbPublishData.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @artifact_count = hash[:artifact_count]
  @benchmark = hash[:benchmark] ? Rafflesia::BlastSearchBenchmarkSummary.new(hash[:benchmark]) : nil
  @benchmark_object_id = hash[:benchmark_object_id]
  @benchmark_passed = hash[:benchmark_passed]
  @manifest = hash[:manifest] ? Rafflesia::BlastDbManifest.new(hash[:manifest]) : nil
  @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil
  @manifest_path = hash[:manifest_path]
  @ref = hash[:ref]
  @registry_record = hash[:registry_record] ? Rafflesia::BlastDbRegistryRecord.new(hash[:registry_record]) : nil
  @stored_object_count = hash[:stored_object_count]
  @total_size_bytes = hash[:total_size_bytes]
end

Instance Attribute Details

#artifact_countObject

Returns the value of attribute artifact_count.



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

def artifact_count
  @artifact_count
end

#benchmarkObject

Returns the value of attribute benchmark.



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

def benchmark
  @benchmark
end

#benchmark_object_idObject

Returns the value of attribute benchmark_object_id.



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

def benchmark_object_id
  @benchmark_object_id
end

#benchmark_passedObject

Returns the value of attribute benchmark_passed.



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

def benchmark_passed
  @benchmark_passed
end

#manifestObject

Returns the value of attribute manifest.



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

def manifest
  @manifest
end

#manifest_objectObject

Returns the value of attribute manifest_object.



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

def manifest_object
  @manifest_object
end

#manifest_pathObject

Returns the value of attribute manifest_path.



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

def manifest_path
  @manifest_path
end

#refObject

Returns the value of attribute ref.



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

def ref
  @ref
end

#registry_recordObject

Returns the value of attribute registry_record.



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

def registry_record
  @registry_record
end

#stored_object_countObject

Returns the value of attribute stored_object_count.



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

def stored_object_count
  @stored_object_count
end

#total_size_bytesObject

Returns the value of attribute total_size_bytes.



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

def total_size_bytes
  @total_size_bytes
end