Class: Rafflesia::ValidationRef

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

Instance Method Summary collapse

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_idObject

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_digestObject

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

#idObject

Returns the value of attribute id.



18
19
20
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18

def id
  @id
end

#kindObject

Returns the value of attribute kind.



18
19
20
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18

def kind
  @kind
end

#objectObject

Returns the value of attribute object.



18
19
20
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18

def object
  @object
end

#observed_atObject

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

#statusObject

Returns the value of attribute status.



18
19
20
# File 'lib/rafflesia/foundry/validation_ref.rb', line 18

def status
  @status
end