Class: Rafflesia::ObjectArtifactAdapterContract
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectArtifactAdapterContract
- 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
-
#cache_namespace ⇒ Object
Returns the value of attribute cache_namespace.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#has_build ⇒ Object
Returns the value of attribute has_build.
-
#has_evict ⇒ Object
Returns the value of attribute has_evict.
-
#has_list ⇒ Object
Returns the value of attribute has_list.
-
#has_materialize ⇒ Object
Returns the value of attribute has_materialize.
-
#has_publish ⇒ Object
Returns the value of attribute has_publish.
-
#has_verify ⇒ Object
Returns the value of attribute has_verify.
-
#lifecycle_operations ⇒ Object
Returns the value of attribute lifecycle_operations.
-
#manifest_roles ⇒ Object
Returns the value of attribute manifest_roles.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#search_operations ⇒ Object
Returns the value of attribute search_operations.
-
#status ⇒ Object
Returns the value of attribute status.
-
#workload ⇒ Object
Returns the value of attribute workload.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectArtifactAdapterContract
constructor
A new instance of ObjectArtifactAdapterContract.
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_namespace ⇒ Object
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 |
#domain ⇒ Object
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_build ⇒ Object
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_evict ⇒ Object
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_list ⇒ Object
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_materialize ⇒ Object
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_publish ⇒ Object
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_verify ⇒ Object
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_operations ⇒ Object
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_roles ⇒ Object
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 |
#name ⇒ Object
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 |
#notes ⇒ Object
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_operations ⇒ Object
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 |
#status ⇒ Object
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 |
#workload ⇒ Object
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 |