Class: Rafflesia::DiamondDbRegistryRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DiamondDbRegistryRecord
- Defined in:
- lib/rafflesia/sequences/diamond_db_registry_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, db_prefix: :db_prefix, engine: :engine, engine_version: :engine_version, manifest_id: :manifest_id, manifest_object: :manifest_object, manifest_object_id: :manifest_object_id, manifest_path: :manifest_path, name: :name, published_at: :published_at, ref: :ref, source_object_id: :source_object_id, total_size_bytes: :total_size_bytes, version: :version }.freeze
Instance Attribute Summary collapse
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#db_prefix ⇒ Object
Returns the value of attribute db_prefix.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#engine_version ⇒ Object
Returns the value of attribute engine_version.
-
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#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.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#source_object_id ⇒ Object
Returns the value of attribute source_object_id.
-
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ DiamondDbRegistryRecord
constructor
A new instance of DiamondDbRegistryRecord.
Constructor Details
#initialize(json) ⇒ DiamondDbRegistryRecord
Returns a new instance of DiamondDbRegistryRecord.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @db_prefix = hash[:db_prefix] @engine = hash[:engine] @engine_version = hash[:engine_version] @manifest_id = hash[:manifest_id] @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @manifest_object_id = hash[:manifest_object_id] @manifest_path = hash[:manifest_path] @name = hash[:name] @published_at = hash[:published_at] @ref = hash[:ref] @source_object_id = hash[:source_object_id] @total_size_bytes = hash[:total_size_bytes] @version = hash[:version] end |
Instance Attribute Details
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def artifact_count @artifact_count end |
#db_prefix ⇒ Object
Returns the value of attribute db_prefix.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def db_prefix @db_prefix end |
#engine ⇒ Object
Returns the value of attribute engine.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def engine @engine end |
#engine_version ⇒ Object
Returns the value of attribute engine_version.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def engine_version @engine_version end |
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def manifest_id @manifest_id end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def manifest_object @manifest_object end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def manifest_object_id @manifest_object_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def manifest_path @manifest_path end |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def name @name end |
#published_at ⇒ Object
Returns the value of attribute published_at.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def published_at @published_at end |
#ref ⇒ Object
Returns the value of attribute ref.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def ref @ref end |
#source_object_id ⇒ Object
Returns the value of attribute source_object_id.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def source_object_id @source_object_id end |
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def total_size_bytes @total_size_bytes end |
#version ⇒ Object
Returns the value of attribute version.
25 26 27 |
# File 'lib/rafflesia/sequences/diamond_db_registry_record.rb', line 25 def version @version end |