Class: Rafflesia::OntologyReviewEvidenceReference

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/database_join_candidate_proposals/ontology_review_evidence_reference.rb

Constant Summary collapse

HASH_ATTRS =
{
  description: :description,
  digest: :digest,
  kind: :kind,
  reference: :reference
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyReviewEvidenceReference

Returns a new instance of OntologyReviewEvidenceReference.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/database_join_candidate_proposals/ontology_review_evidence_reference.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @description = hash[:description]
  @digest = hash[:digest]
  @kind = hash[:kind]
  @reference = hash[:reference]
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



15
16
17
# File 'lib/rafflesia/database_join_candidate_proposals/ontology_review_evidence_reference.rb', line 15

def description
  @description
end

#digestObject

Returns the value of attribute digest.



15
16
17
# File 'lib/rafflesia/database_join_candidate_proposals/ontology_review_evidence_reference.rb', line 15

def digest
  @digest
end

#kindObject

Returns the value of attribute kind.



15
16
17
# File 'lib/rafflesia/database_join_candidate_proposals/ontology_review_evidence_reference.rb', line 15

def kind
  @kind
end

#referenceObject

Returns the value of attribute reference.



15
16
17
# File 'lib/rafflesia/database_join_candidate_proposals/ontology_review_evidence_reference.rb', line 15

def reference
  @reference
end