Class: Rafflesia::RegistryArtifactRef

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#formatObject

Returns the value of attribute format.



21
22
23
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21

def format
  @format
end

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21

def id
  @id
end

#kindObject

Returns the value of attribute kind.



21
22
23
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21

def kind
  @kind
end

#location_uriObject

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

#objectObject

Returns the value of attribute object.



21
22
23
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21

def object
  @object
end

#object_idObject

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

#roleObject

Returns the value of attribute role.



21
22
23
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21

def role
  @role
end

#sha_256Object

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_bytesObject

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

#statusObject

Returns the value of attribute status.



21
22
23
# File 'lib/rafflesia/foundry/registry_artifact_ref.rb', line 21

def status
  @status
end