Class: Rafflesia::DatabaseJoinCandidateReviewRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCandidateReviewRequest
- Defined in:
- lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.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, rejection_reason: :rejection_reason, review_version: :review_version, reviewer: :reviewer, semantic_basis: :semantic_basis, supersedes_review_id: :supersedes_review_id }.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.
-
#rejection_reason ⇒ Object
Returns the value of attribute rejection_reason.
-
#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.
-
#supersedes_review_id ⇒ Object
Returns the value of attribute supersedes_review_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCandidateReviewRequest
constructor
A new instance of DatabaseJoinCandidateReviewRequest.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCandidateReviewRequest
Returns a new instance of DatabaseJoinCandidateReviewRequest.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 41 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] @rejection_reason = hash[:rejection_reason] @review_version = hash[:review_version] @reviewer = hash[:reviewer] @semantic_basis = hash[:semantic_basis] @supersedes_review_id = hash[:supersedes_review_id] end |
Instance Attribute Details
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def candidate_id @candidate_id end |
#cardinality ⇒ Object
Returns the value of attribute cardinality.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def cardinality @cardinality end |
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def coordinate_notes @coordinate_notes end |
#decision ⇒ Object
Returns the value of attribute decision.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def decision @decision end |
#evidence_references ⇒ Object
Returns the value of attribute evidence_references.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def evidence_references @evidence_references end |
#is_direction_reviewed ⇒ Object
Returns the value of attribute is_direction_reviewed.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def is_direction_reviewed @is_direction_reviewed end |
#is_identifier_namespace_reviewed ⇒ Object
Returns the value of attribute is_identifier_namespace_reviewed.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def is_identifier_namespace_reviewed @is_identifier_namespace_reviewed end |
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def is_lossy @is_lossy end |
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def is_range_mapping @is_range_mapping end |
#rejection_reason ⇒ Object
Returns the value of attribute rejection_reason.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def rejection_reason @rejection_reason end |
#review_version ⇒ Object
Returns the value of attribute review_version.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def review_version @review_version end |
#reviewer ⇒ Object
Returns the value of attribute reviewer.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def reviewer @reviewer end |
#semantic_basis ⇒ Object
Returns the value of attribute semantic_basis.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def semantic_basis @semantic_basis end |
#supersedes_review_id ⇒ Object
Returns the value of attribute supersedes_review_id.
25 26 27 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_request.rb', line 25 def supersedes_review_id @supersedes_review_id end |