Class: Rafflesia::BlastDbPublishData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastDbPublishData
- 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
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#benchmark ⇒ Object
Returns the value of attribute benchmark.
-
#benchmark_object_id ⇒ Object
Returns the value of attribute benchmark_object_id.
-
#benchmark_passed ⇒ Object
Returns the value of attribute benchmark_passed.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#registry_record ⇒ Object
Returns the value of attribute registry_record.
-
#stored_object_count ⇒ Object
Returns the value of attribute stored_object_count.
-
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
Instance Method Summary collapse
-
#initialize(json) ⇒ BlastDbPublishData
constructor
A new instance of BlastDbPublishData.
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_count ⇒ Object
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 |
#benchmark ⇒ Object
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_id ⇒ Object
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_passed ⇒ Object
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 |
#manifest ⇒ Object
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_object ⇒ Object
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_path ⇒ Object
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 |
#ref ⇒ Object
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_record ⇒ Object
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_count ⇒ Object
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_bytes ⇒ Object
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 |