Class: Rafflesia::JoinEvidence
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::JoinEvidence
- Defined in:
- lib/rafflesia/registry/join_evidence.rb
Constant Summary collapse
- HASH_ATTRS =
{ cardinality_status: :cardinality_status, declared_cardinality: :declared_cardinality, evidence_digest: :evidence_digest, evidence_uri: :evidence_uri, from: :from, id: :id, is_lossy: :is_lossy, is_range_mapping: :is_range_mapping, key_overlap_status: :key_overlap_status, key_variant: :key_variant, measurement_artifact_id: :measurement_artifact_id, measurement_digest: :measurement_digest, measurements: :measurements, object: :object, observation_status: :observation_status, observed_at: :observed_at, ontology_digest: :ontology_digest, ontology_module_release_id: :ontology_module_release_id, organization_id: :organization_id, relationship_id: :relationship_id, resource_group_id: :resource_group_id, to: :to, tool: :tool, tool_version: :tool_version }.freeze
Instance Attribute Summary collapse
-
#cardinality_status ⇒ Object
Returns the value of attribute cardinality_status.
-
#declared_cardinality ⇒ Object
Returns the value of attribute declared_cardinality.
-
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
-
#evidence_uri ⇒ Object
Returns the value of attribute evidence_uri.
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
-
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
-
#key_overlap_status ⇒ Object
Returns the value of attribute key_overlap_status.
-
#key_variant ⇒ Object
Returns the value of attribute key_variant.
-
#measurement_artifact_id ⇒ Object
Returns the value of attribute measurement_artifact_id.
-
#measurement_digest ⇒ Object
Returns the value of attribute measurement_digest.
-
#measurements ⇒ Object
Returns the value of attribute measurements.
-
#object ⇒ Object
Returns the value of attribute object.
-
#observation_status ⇒ Object
Returns the value of attribute observation_status.
-
#observed_at ⇒ Object
Returns the value of attribute observed_at.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_module_release_id ⇒ Object
Returns the value of attribute ontology_module_release_id.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#relationship_id ⇒ Object
Returns the value of attribute relationship_id.
-
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
-
#to ⇒ Object
Returns the value of attribute to.
-
#tool ⇒ Object
Returns the value of attribute tool.
-
#tool_version ⇒ Object
Returns the value of attribute tool_version.
Instance Method Summary collapse
-
#initialize(json) ⇒ JoinEvidence
constructor
A new instance of JoinEvidence.
Constructor Details
#initialize(json) ⇒ JoinEvidence
Returns a new instance of JoinEvidence.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 61 def initialize(json) super() hash = self.class.normalize(json) @cardinality_status = hash[:cardinality_status] @declared_cardinality = hash[:declared_cardinality] @evidence_digest = hash[:evidence_digest] @evidence_uri = hash[:evidence_uri] @from = hash[:from] ? Rafflesia::JoinSide.new(hash[:from]) : nil @id = hash[:id] @is_lossy = hash[:is_lossy] @is_range_mapping = hash[:is_range_mapping] @key_overlap_status = hash[:key_overlap_status] @key_variant = hash[:key_variant] @measurement_artifact_id = hash[:measurement_artifact_id] @measurement_digest = hash[:measurement_digest] @measurements = hash[:measurements] ? Rafflesia::JoinMeasurements.new(hash[:measurements]) : nil @object = hash[:object] @observation_status = hash[:observation_status] @observed_at = hash[:observed_at] @ontology_digest = hash[:ontology_digest] @ontology_module_release_id = hash[:ontology_module_release_id] @organization_id = hash[:organization_id] @relationship_id = hash[:relationship_id] @resource_group_id = hash[:resource_group_id] @to = hash[:to] ? Rafflesia::JoinSide.new(hash[:to]) : nil @tool = hash[:tool] @tool_version = hash[:tool_version] end |
Instance Attribute Details
#cardinality_status ⇒ Object
Returns the value of attribute cardinality_status.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def cardinality_status @cardinality_status end |
#declared_cardinality ⇒ Object
Returns the value of attribute declared_cardinality.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def declared_cardinality @declared_cardinality end |
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def evidence_digest @evidence_digest end |
#evidence_uri ⇒ Object
Returns the value of attribute evidence_uri.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def evidence_uri @evidence_uri end |
#from ⇒ Object
Returns the value of attribute from.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def id @id end |
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def is_lossy @is_lossy end |
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def is_range_mapping @is_range_mapping end |
#key_overlap_status ⇒ Object
Returns the value of attribute key_overlap_status.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def key_overlap_status @key_overlap_status end |
#key_variant ⇒ Object
Returns the value of attribute key_variant.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def key_variant @key_variant end |
#measurement_artifact_id ⇒ Object
Returns the value of attribute measurement_artifact_id.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def measurement_artifact_id @measurement_artifact_id end |
#measurement_digest ⇒ Object
Returns the value of attribute measurement_digest.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def measurement_digest @measurement_digest end |
#measurements ⇒ Object
Returns the value of attribute measurements.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def measurements @measurements end |
#object ⇒ Object
Returns the value of attribute object.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def object @object end |
#observation_status ⇒ Object
Returns the value of attribute observation_status.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def observation_status @observation_status end |
#observed_at ⇒ Object
Returns the value of attribute observed_at.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def observed_at @observed_at end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def ontology_digest @ontology_digest end |
#ontology_module_release_id ⇒ Object
Returns the value of attribute ontology_module_release_id.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def ontology_module_release_id @ontology_module_release_id end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def organization_id @organization_id end |
#relationship_id ⇒ Object
Returns the value of attribute relationship_id.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def relationship_id @relationship_id end |
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def resource_group_id @resource_group_id end |
#to ⇒ Object
Returns the value of attribute to.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def to @to end |
#tool ⇒ Object
Returns the value of attribute tool.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def tool @tool end |
#tool_version ⇒ Object
Returns the value of attribute tool_version.
35 36 37 |
# File 'lib/rafflesia/registry/join_evidence.rb', line 35 def tool_version @tool_version end |