Class: Rafflesia::DatabaseJoinCandidateReviewTemplate
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCandidateReviewTemplate
- Defined in:
- lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_id: :candidate_id, cardinality: :cardinality, coordinate_notes: :coordinate_notes, decision: :decision, evidence_references: :evidence_references, is_direction_reviewed: :is_direction_reviewed, is_identifier_namespace_reviewed: :is_identifier_namespace_reviewed, is_lossy: :is_lossy, is_range_mapping: :is_range_mapping, review_version: :review_version, reviewer: :reviewer, semantic_basis: :semantic_basis }.freeze
Instance Attribute Summary collapse
-
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
-
#cardinality ⇒ Object
Returns the value of attribute cardinality.
-
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#evidence_references ⇒ Object
Returns the value of attribute evidence_references.
-
#is_direction_reviewed ⇒ Object
Returns the value of attribute is_direction_reviewed.
-
#is_identifier_namespace_reviewed ⇒ Object
Returns the value of attribute is_identifier_namespace_reviewed.
-
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
-
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
-
#review_version ⇒ Object
Returns the value of attribute review_version.
-
#reviewer ⇒ Object
Returns the value of attribute reviewer.
-
#semantic_basis ⇒ Object
Returns the value of attribute semantic_basis.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCandidateReviewTemplate
constructor
A new instance of DatabaseJoinCandidateReviewTemplate.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCandidateReviewTemplate
Returns a new instance of DatabaseJoinCandidateReviewTemplate.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @candidate_id = hash[:candidate_id] @cardinality = hash[:cardinality] @coordinate_notes = hash[:coordinate_notes] @decision = hash[:decision] @evidence_references = (hash[:evidence_references] || []).map { |item| item ? Rafflesia::OntologyReviewEvidenceReference.new(item) : nil } @is_direction_reviewed = hash[:is_direction_reviewed] @is_identifier_namespace_reviewed = hash[:is_identifier_namespace_reviewed] @is_lossy = hash[:is_lossy] @is_range_mapping = hash[:is_range_mapping] @review_version = hash[:review_version] @reviewer = hash[:reviewer] @semantic_basis = hash[:semantic_basis] end |
Instance Attribute Details
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def candidate_id @candidate_id end |
#cardinality ⇒ Object
Returns the value of attribute cardinality.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def cardinality @cardinality end |
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def coordinate_notes @coordinate_notes end |
#decision ⇒ Object
Returns the value of attribute decision.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def decision @decision end |
#evidence_references ⇒ Object
Returns the value of attribute evidence_references.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def evidence_references @evidence_references end |
#is_direction_reviewed ⇒ Object
Returns the value of attribute is_direction_reviewed.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def is_direction_reviewed @is_direction_reviewed end |
#is_identifier_namespace_reviewed ⇒ Object
Returns the value of attribute is_identifier_namespace_reviewed.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def is_identifier_namespace_reviewed @is_identifier_namespace_reviewed end |
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def is_lossy @is_lossy end |
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def is_range_mapping @is_range_mapping end |
#review_version ⇒ Object
Returns the value of attribute review_version.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def review_version @review_version end |
#reviewer ⇒ Object
Returns the value of attribute reviewer.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def reviewer @reviewer end |
#semantic_basis ⇒ Object
Returns the value of attribute semantic_basis.
23 24 25 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_review_template.rb', line 23 def semantic_basis @semantic_basis end |