Class: Rafflesia::RegistryEvidenceSet

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/registry_evidence_set.rb

Constant Summary collapse

HASH_ATTRS =
{
  artifact_ids: :artifact_ids,
  available_records: :available_records,
  coverage_fraction: :coverage_fraction,
  derived_from: :derived_from,
  eligible_records: :eligible_records,
  id: :id,
  kind: :kind,
  model_release_id: :model_release_id,
  origin: :origin,
  representation: :representation
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RegistryEvidenceSet

Returns a new instance of RegistryEvidenceSet.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @artifact_ids = (hash[:artifact_ids] || [])
  @available_records = hash[:available_records]
  @coverage_fraction = hash[:coverage_fraction]
  @derived_from = (hash[:derived_from] || [])
  @eligible_records = hash[:eligible_records]
  @id = hash[:id]
  @kind = hash[:kind]
  @model_release_id = hash[:model_release_id]
  @origin = hash[:origin]
  @representation = hash[:representation]
end

Instance Attribute Details

#artifact_idsObject

Returns the value of attribute artifact_ids.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def artifact_ids
  @artifact_ids
end

#available_recordsObject

Returns the value of attribute available_records.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def available_records
  @available_records
end

#coverage_fractionObject

Returns the value of attribute coverage_fraction.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def coverage_fraction
  @coverage_fraction
end

#derived_fromObject

Returns the value of attribute derived_from.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def derived_from
  @derived_from
end

#eligible_recordsObject

Returns the value of attribute eligible_records.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def eligible_records
  @eligible_records
end

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def id
  @id
end

#kindObject

Returns the value of attribute kind.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def kind
  @kind
end

#model_release_idObject

Returns the value of attribute model_release_id.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def model_release_id
  @model_release_id
end

#originObject

Returns the value of attribute origin.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def origin
  @origin
end

#representationObject

Returns the value of attribute representation.



21
22
23
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21

def representation
  @representation
end