Class: Rafflesia::ObjectArtifactAdapterContract

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb

Constant Summary collapse

HASH_ATTRS =
{
  cache_namespace: :cache_namespace,
  domain: :domain,
  has_build: :has_build,
  has_evict: :has_evict,
  has_list: :has_list,
  has_materialize: :has_materialize,
  has_publish: :has_publish,
  has_verify: :has_verify,
  lifecycle_operations: :lifecycle_operations,
  manifest_roles: :manifest_roles,
  name: :name,
  notes: :notes,
  search_operations: :search_operations,
  status: :status,
  workload: :workload
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ObjectArtifactAdapterContract

Returns a new instance of ObjectArtifactAdapterContract.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 43

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @cache_namespace = hash[:cache_namespace]
  @domain = hash[:domain]
  @has_build = hash[:has_build]
  @has_evict = hash[:has_evict]
  @has_list = hash[:has_list]
  @has_materialize = hash[:has_materialize]
  @has_publish = hash[:has_publish]
  @has_verify = hash[:has_verify]
  @lifecycle_operations = (hash[:lifecycle_operations] || [])
  @manifest_roles = (hash[:manifest_roles] || [])
  @name = hash[:name]
  @notes = (hash[:notes] || [])
  @search_operations = (hash[:search_operations] || [])
  @status = hash[:status]
  @workload = hash[:workload]
end

Instance Attribute Details

#cache_namespaceObject

Returns the value of attribute cache_namespace.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def cache_namespace
  @cache_namespace
end

#domainObject

Returns the value of attribute domain.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def domain
  @domain
end

#has_buildObject

Returns the value of attribute has_build.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def has_build
  @has_build
end

#has_evictObject

Returns the value of attribute has_evict.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def has_evict
  @has_evict
end

#has_listObject

Returns the value of attribute has_list.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def has_list
  @has_list
end

#has_materializeObject

Returns the value of attribute has_materialize.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def has_materialize
  @has_materialize
end

#has_publishObject

Returns the value of attribute has_publish.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def has_publish
  @has_publish
end

#has_verifyObject

Returns the value of attribute has_verify.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def has_verify
  @has_verify
end

#lifecycle_operationsObject

Returns the value of attribute lifecycle_operations.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def lifecycle_operations
  @lifecycle_operations
end

#manifest_rolesObject

Returns the value of attribute manifest_roles.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def manifest_roles
  @manifest_roles
end

#nameObject

Returns the value of attribute name.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def name
  @name
end

#notesObject

Returns the value of attribute notes.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def notes
  @notes
end

#search_operationsObject

Returns the value of attribute search_operations.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def search_operations
  @search_operations
end

#statusObject

Returns the value of attribute status.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def status
  @status
end

#workloadObject

Returns the value of attribute workload.



26
27
28
# File 'lib/rafflesia/object_artifacts/object_artifact_adapter_contract.rb', line 26

def workload
  @workload
end