Class: Rafflesia::DiamondDbBuildData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DiamondDbBuildData
- Defined in:
- lib/rafflesia/sequences/diamond_db_build_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, command: :command, dry_run: :dry_run, manifest: :manifest, manifest_object: :manifest_object, manifest_path: :manifest_path, name: :name, published: :published, ref: :ref, total_size_bytes: :total_size_bytes, version: :version }.freeze
Instance Attribute Summary collapse
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#command ⇒ Object
Returns the value of attribute command.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#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.
-
#name ⇒ Object
Returns the value of attribute name.
-
#published ⇒ Object
Returns the value of attribute published.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#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) ⇒ DiamondDbBuildData
constructor
A new instance of DiamondDbBuildData.
Constructor Details
#initialize(json) ⇒ DiamondDbBuildData
Returns a new instance of DiamondDbBuildData.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @command = (hash[:command] || []) @dry_run = hash[:dry_run] @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] @name = hash[:name] @published = hash[:published] ? Rafflesia::DiamondDbPublishData.new(hash[:published]) : nil @ref = hash[:ref] @total_size_bytes = hash[:total_size_bytes] @version = hash[:version] end |
Instance Attribute Details
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def artifact_count @artifact_count end |
#command ⇒ Object
Returns the value of attribute command.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def command @command end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def dry_run @dry_run end |
#manifest ⇒ Object
Returns the value of attribute manifest.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_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/diamond_db_build_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/diamond_db_build_data.rb', line 22 def manifest_path @manifest_path end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def name @name end |
#published ⇒ Object
Returns the value of attribute published.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def published @published end |
#ref ⇒ Object
Returns the value of attribute ref.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def ref @ref end |
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def total_size_bytes @total_size_bytes end |
#version ⇒ Object
Returns the value of attribute version.
22 23 24 |
# File 'lib/rafflesia/sequences/diamond_db_build_data.rb', line 22 def version @version end |