Class: Rafflesia::OntologyPathCertification

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

Instance Method Summary collapse

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_countObject

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_countObject

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_digestsObject

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_statusObject

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_digestObject

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_certifiedObject

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_inferredObject

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

#objectObject

Returns the value of attribute object.



21
22
23
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21

def object
  @object
end

#requirementObject

Returns the value of attribute requirement.



21
22
23
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21

def requirement
  @requirement
end

#statusObject

Returns the value of attribute status.



21
22
23
# File 'lib/rafflesia/ontology/ontology_path_certification.rb', line 21

def status
  @status
end