Class: Rafflesia::ValidationRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ValidationRef
- Defined in:
- lib/rafflesia/foundry/validation_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_id: :artifact_id, evidence_digest: :evidence_digest, id: :id, kind: :kind, object: :object, observed_at: :observed_at, status: :status }.freeze
Instance Attribute Summary collapse
-
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
-
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#object ⇒ Object
Returns the value of attribute object.
-
#observed_at ⇒ Object
Returns the value of attribute observed_at.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ ValidationRef
constructor
A new instance of ValidationRef.
Constructor Details
#initialize(json) ⇒ ValidationRef
Returns a new instance of ValidationRef.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @artifact_id = hash[:artifact_id] @evidence_digest = hash[:evidence_digest] @id = hash[:id] @kind = hash[:kind] @object = hash[:object] @observed_at = hash[:observed_at] @status = hash[:status] end |
Instance Attribute Details
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
18 19 20 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18 def artifact_id @artifact_id end |
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
18 19 20 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18 def evidence_digest @evidence_digest end |
#id ⇒ Object
Returns the value of attribute id.
18 19 20 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
18 19 20 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18 def kind @kind end |
#object ⇒ Object
Returns the value of attribute object.
18 19 20 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18 def object @object end |
#observed_at ⇒ Object
Returns the value of attribute observed_at.
18 19 20 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18 def observed_at @observed_at end |
#status ⇒ Object
Returns the value of attribute status.
18 19 20 |
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18 def status @status end |