Class: Rafflesia::OntologyPathCertification
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyPathCertification
- Defined in:
- lib/rafflesia/ontology/ontology_path_certification.rb
Constant Summary collapse
- HASH_ATTRS =
{ certified_edge_count: :certified_edge_count, edge_count: :edge_count, edge_evidence_digests: :edge_evidence_digests, endpoint_overlap_status: :endpoint_overlap_status, evidence_digest: :evidence_digest, is_certified: :is_certified, is_endpoint_overlap_inferred: :is_endpoint_overlap_inferred, object: :object, requirement: :requirement, status: :status }.freeze
Instance Attribute Summary collapse
-
#certified_edge_count ⇒ Object
Returns the value of attribute certified_edge_count.
-
#edge_count ⇒ Object
Returns the value of attribute edge_count.
-
#edge_evidence_digests ⇒ Object
Returns the value of attribute edge_evidence_digests.
-
#endpoint_overlap_status ⇒ Object
Returns the value of attribute endpoint_overlap_status.
-
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
-
#is_certified ⇒ Object
Returns the value of attribute is_certified.
-
#is_endpoint_overlap_inferred ⇒ Object
Returns the value of attribute is_endpoint_overlap_inferred.
-
#object ⇒ Object
Returns the value of attribute object.
-
#requirement ⇒ Object
Returns the value of attribute requirement.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyPathCertification
constructor
A new instance of OntologyPathCertification.
Constructor Details
#initialize(json) ⇒ OntologyPathCertification
Returns a new instance of OntologyPathCertification.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @certified_edge_count = hash[:certified_edge_count] @edge_count = hash[:edge_count] @edge_evidence_digests = (hash[:edge_evidence_digests] || []) @endpoint_overlap_status = hash[:endpoint_overlap_status] @evidence_digest = hash[:evidence_digest] @is_certified = hash[:is_certified] @is_endpoint_overlap_inferred = hash[:is_endpoint_overlap_inferred] @object = hash[:object] @requirement = hash[:requirement] @status = hash[:status] end |
Instance Attribute Details
#certified_edge_count ⇒ Object
Returns the value of attribute certified_edge_count.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def certified_edge_count @certified_edge_count end |
#edge_count ⇒ Object
Returns the value of attribute edge_count.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def edge_count @edge_count end |
#edge_evidence_digests ⇒ Object
Returns the value of attribute edge_evidence_digests.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def edge_evidence_digests @edge_evidence_digests end |
#endpoint_overlap_status ⇒ Object
Returns the value of attribute endpoint_overlap_status.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def endpoint_overlap_status @endpoint_overlap_status end |
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def evidence_digest @evidence_digest end |
#is_certified ⇒ Object
Returns the value of attribute is_certified.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def is_certified @is_certified end |
#is_endpoint_overlap_inferred ⇒ Object
Returns the value of attribute is_endpoint_overlap_inferred.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def is_endpoint_overlap_inferred @is_endpoint_overlap_inferred end |
#object ⇒ Object
Returns the value of attribute object.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def object @object end |
#requirement ⇒ Object
Returns the value of attribute requirement.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def requirement @requirement end |
#status ⇒ Object
Returns the value of attribute status.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21 def status @status end |