Class: Rafflesia::RuntimeObservation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RuntimeObservation
- Defined in:
- lib/rafflesia/registry/runtime_observation.rb
Constant Summary collapse
- HASH_ATTRS =
{ binding_digest: :binding_digest, build_id: :build_id, credential_ref: :credential_ref, database_id: :database_id, database_release_id: :database_release_id, deployment_id: :deployment_id, detail: :detail, kind: :kind, observed_at: :observed_at, release_id: :release_id, repository_id: :repository_id, status: :status }.freeze
Instance Attribute Summary collapse
-
#binding_digest ⇒ Object
Returns the value of attribute binding_digest.
-
#build_id ⇒ Object
Returns the value of attribute build_id.
-
#credential_ref ⇒ Object
Returns the value of attribute credential_ref.
-
#database_id ⇒ Object
Returns the value of attribute database_id.
-
#database_release_id ⇒ Object
Returns the value of attribute database_release_id.
-
#deployment_id ⇒ Object
Returns the value of attribute deployment_id.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#observed_at ⇒ Object
Returns the value of attribute observed_at.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#repository_id ⇒ Object
Returns the value of attribute repository_id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ RuntimeObservation
constructor
A new instance of RuntimeObservation.
Constructor Details
#initialize(json) ⇒ RuntimeObservation
Returns a new instance of RuntimeObservation.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @binding_digest = hash[:binding_digest] @build_id = hash[:build_id] @credential_ref = hash[:credential_ref] @database_id = hash[:database_id] @database_release_id = hash[:database_release_id] @deployment_id = hash[:deployment_id] @detail = hash[:detail] @kind = hash[:kind] @observed_at = hash[:observed_at] @release_id = hash[:release_id] @repository_id = hash[:repository_id] @status = hash[:status] end |
Instance Attribute Details
#binding_digest ⇒ Object
Returns the value of attribute binding_digest.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def binding_digest @binding_digest end |
#build_id ⇒ Object
Returns the value of attribute build_id.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def build_id @build_id end |
#credential_ref ⇒ Object
Returns the value of attribute credential_ref.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def credential_ref @credential_ref end |
#database_id ⇒ Object
Returns the value of attribute database_id.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def database_id @database_id end |
#database_release_id ⇒ Object
Returns the value of attribute database_release_id.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def database_release_id @database_release_id end |
#deployment_id ⇒ Object
Returns the value of attribute deployment_id.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def deployment_id @deployment_id end |
#detail ⇒ Object
Returns the value of attribute detail.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def detail @detail end |
#kind ⇒ Object
Returns the value of attribute kind.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def kind @kind end |
#observed_at ⇒ Object
Returns the value of attribute observed_at.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def observed_at @observed_at end |
#release_id ⇒ Object
Returns the value of attribute release_id.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.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/runtime_observation.rb', line 23 def repository_id @repository_id end |
#status ⇒ Object
Returns the value of attribute status.
23 24 25 |
# File 'lib/rafflesia/registry/runtime_observation.rb', line 23 def status @status end |