Class: Rafflesia::RegistryEvidenceSet
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RegistryEvidenceSet
- 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
-
#artifact_ids ⇒ Object
Returns the value of attribute artifact_ids.
-
#available_records ⇒ Object
Returns the value of attribute available_records.
-
#coverage_fraction ⇒ Object
Returns the value of attribute coverage_fraction.
-
#derived_from ⇒ Object
Returns the value of attribute derived_from.
-
#eligible_records ⇒ Object
Returns the value of attribute eligible_records.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#model_release_id ⇒ Object
Returns the value of attribute model_release_id.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#representation ⇒ Object
Returns the value of attribute representation.
Instance Method Summary collapse
-
#initialize(json) ⇒ RegistryEvidenceSet
constructor
A new instance of RegistryEvidenceSet.
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_ids ⇒ Object
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_records ⇒ Object
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_fraction ⇒ Object
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_from ⇒ Object
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_records ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21 def id @id end |
#kind ⇒ Object
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_id ⇒ Object
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 |
#origin ⇒ Object
Returns the value of attribute origin.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21 def origin @origin end |
#representation ⇒ Object
Returns the value of attribute representation.
21 22 23 |
# File 'lib/rafflesia/foundry/registry_evidence_set.rb', line 21 def representation @representation end |