Class: Rafflesia::DiamondDbPublishData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DiamondDbPublishData
- Defined in:
- lib/rafflesia/sequences/diamond_db_publish_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, 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.
-
#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) ⇒ DiamondDbPublishData
constructor
A new instance of DiamondDbPublishData.
Constructor Details
#initialize(json) ⇒ DiamondDbPublishData
Returns a new instance of DiamondDbPublishData.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @manifest = hash[:manifest] ? Rafflesia::DiamondDbManifest.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::DiamondDbRegistryRecord.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.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def artifact_count @artifact_count end |
#manifest ⇒ Object
Returns the value of attribute manifest.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def manifest @manifest end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def manifest_object @manifest_object end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def manifest_path @manifest_path end |
#ref ⇒ Object
Returns the value of attribute ref.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def ref @ref end |
#registry_record ⇒ Object
Returns the value of attribute registry_record.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def registry_record @registry_record end |
#stored_object_count ⇒ Object
Returns the value of attribute stored_object_count.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def stored_object_count @stored_object_count end |
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
19 20 21 |
# File 'lib/rafflesia/sequences/diamond_db_publish_data.rb', line 19 def total_size_bytes @total_size_bytes end |