Class: Rafflesia::RegistryReleaseProvenance
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RegistryReleaseProvenance
- Defined in:
- lib/rafflesia/registry/registry_release_provenance.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, content_digest: :content_digest, declaration_path: :declaration_path, declaration_sha256: :declaration_sha_256, is_content_pinned: :is_content_pinned, kind: :kind, publication_state: :publication_state, registry_digest: :registry_digest, release_id: :release_id, repository_id: :repository_id, selector: :selector, version: :version }.freeze
Instance Attribute Summary collapse
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#content_digest ⇒ Object
Returns the value of attribute content_digest.
-
#declaration_path ⇒ Object
Returns the value of attribute declaration_path.
-
#declaration_sha_256 ⇒ Object
Returns the value of attribute declaration_sha_256.
-
#is_content_pinned ⇒ Object
Returns the value of attribute is_content_pinned.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#publication_state ⇒ Object
Returns the value of attribute publication_state.
-
#registry_digest ⇒ Object
Returns the value of attribute registry_digest.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#repository_id ⇒ Object
Returns the value of attribute repository_id.
-
#selector ⇒ Object
Returns the value of attribute selector.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ RegistryReleaseProvenance
constructor
A new instance of RegistryReleaseProvenance.
Constructor Details
#initialize(json) ⇒ RegistryReleaseProvenance
Returns a new instance of RegistryReleaseProvenance.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @content_digest = hash[:content_digest] @declaration_path = hash[:declaration_path] @declaration_sha_256 = hash[:declaration_sha256] @is_content_pinned = hash[:is_content_pinned] @kind = hash[:kind] @publication_state = hash[:publication_state] @registry_digest = hash[:registry_digest] @release_id = hash[:release_id] @repository_id = hash[:repository_id] @selector = hash[:selector] @version = hash[:version] end |
Instance Attribute Details
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def artifact_count @artifact_count end |
#content_digest ⇒ Object
Returns the value of attribute content_digest.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def content_digest @content_digest end |
#declaration_path ⇒ Object
Returns the value of attribute declaration_path.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def declaration_path @declaration_path end |
#declaration_sha_256 ⇒ Object
Returns the value of attribute declaration_sha_256.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def declaration_sha_256 @declaration_sha_256 end |
#is_content_pinned ⇒ Object
Returns the value of attribute is_content_pinned.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def is_content_pinned @is_content_pinned end |
#kind ⇒ Object
Returns the value of attribute kind.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def kind @kind end |
#publication_state ⇒ Object
Returns the value of attribute publication_state.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def publication_state @publication_state end |
#registry_digest ⇒ Object
Returns the value of attribute registry_digest.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def registry_digest @registry_digest end |
#release_id ⇒ Object
Returns the value of attribute release_id.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def release_id @release_id end |
#repository_id ⇒ Object
Returns the value of attribute repository_id.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def repository_id @repository_id end |
#selector ⇒ Object
Returns the value of attribute selector.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def selector @selector end |
#version ⇒ Object
Returns the value of attribute version.
23 24 25 |
# File 'lib/rafflesia/registry/registry_release_provenance.rb', line 23 def version @version end |