Class: Rafflesia::RegistryArtifactRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RegistryArtifactRef
- Defined in:
- lib/rafflesia/foundry/registry_artifact_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ format: :format, id: :id, kind: :kind, location_uri: :location_uri, object: :object, object_id: :object_id, role: :role, sha256: :sha_256, size_bytes: :size_bytes, status: :status }.freeze
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#location_uri ⇒ Object
Returns the value of attribute location_uri.
-
#object ⇒ Object
Returns the value of attribute object.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#role ⇒ Object
Returns the value of attribute role.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ RegistryArtifactRef
constructor
A new instance of RegistryArtifactRef.
Constructor Details
#initialize(json) ⇒ RegistryArtifactRef
Returns a new instance of RegistryArtifactRef.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @format = hash[:format] @id = hash[:id] @kind = hash[:kind] @location_uri = hash[:location_uri] @object = hash[:object] @object_id = hash[:object_id] @role = hash[:role] @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @status = hash[:status] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def format @format end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def kind @kind end |
#location_uri ⇒ Object
Returns the value of attribute location_uri.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def location_uri @location_uri end |
#object ⇒ Object
Returns the value of attribute object.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def object @object end |
#object_id ⇒ Object
Returns the value of attribute object_id.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def object_id @object_id end |
#role ⇒ Object
Returns the value of attribute role.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def role @role end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def size_bytes @size_bytes end |
#status ⇒ Object
Returns the value of attribute status.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21 def status @status end |