Class: Rafflesia::DatabaseJoinCandidateReviewData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCandidateReviewData
- Defined in:
- lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_id: :candidate_id, decision: :decision, id: :id, impact: :impact, is_accepted: :is_accepted, is_current: :is_current, is_ontology_mutated: :is_ontology_mutated, is_safe_join: :is_safe_join, object: :object, patch: :patch, patch_object_ref: :patch_object_ref, review_digest: :review_digest, review_object_ref: :review_object_ref, review_version: :review_version, reviewer: :reviewer, superseded_by_review_id: :superseded_by_review_id, supersedes_review_id: :supersedes_review_id }.freeze
Instance Attribute Summary collapse
-
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#id ⇒ Object
Returns the value of attribute id.
-
#impact ⇒ Object
Returns the value of attribute impact.
-
#is_accepted ⇒ Object
Returns the value of attribute is_accepted.
-
#is_current ⇒ Object
Returns the value of attribute is_current.
-
#is_ontology_mutated ⇒ Object
Returns the value of attribute is_ontology_mutated.
-
#is_safe_join ⇒ Object
Returns the value of attribute is_safe_join.
-
#object ⇒ Object
Returns the value of attribute object.
-
#patch ⇒ Object
Returns the value of attribute patch.
-
#patch_object_ref ⇒ Object
Returns the value of attribute patch_object_ref.
-
#review_digest ⇒ Object
Returns the value of attribute review_digest.
-
#review_object_ref ⇒ Object
Returns the value of attribute review_object_ref.
-
#review_version ⇒ Object
Returns the value of attribute review_version.
-
#reviewer ⇒ Object
Returns the value of attribute reviewer.
-
#superseded_by_review_id ⇒ Object
Returns the value of attribute superseded_by_review_id.
-
#supersedes_review_id ⇒ Object
Returns the value of attribute supersedes_review_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCandidateReviewData
constructor
A new instance of DatabaseJoinCandidateReviewData.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCandidateReviewData
Returns a new instance of DatabaseJoinCandidateReviewData.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 47 def initialize(json) super() hash = self.class.normalize(json) @candidate_id = hash[:candidate_id] @decision = hash[:decision] @id = hash[:id] @impact = hash[:impact] ? Rafflesia::OntologyJoinReviewImpactData.new(hash[:impact]) : nil @is_accepted = hash[:is_accepted] @is_current = hash[:is_current] @is_ontology_mutated = hash[:is_ontology_mutated] @is_safe_join = hash[:is_safe_join] @object = hash[:object] @patch = hash[:patch] ? Rafflesia::OntologyJoinPatchData.new(hash[:patch]) : nil @patch_object_ref = hash[:patch_object_ref] ? Rafflesia::ObjectRef.new(hash[:patch_object_ref]) : nil @review_digest = hash[:review_digest] @review_object_ref = hash[:review_object_ref] ? Rafflesia::ObjectRef.new(hash[:review_object_ref]) : nil @review_version = hash[:review_version] @reviewer = hash[:reviewer] @superseded_by_review_id = hash[:superseded_by_review_id] @supersedes_review_id = hash[:supersedes_review_id] end |
Instance Attribute Details
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def candidate_id @candidate_id end |
#decision ⇒ Object
Returns the value of attribute decision.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def decision @decision end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def id @id end |
#impact ⇒ Object
Returns the value of attribute impact.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def impact @impact end |
#is_accepted ⇒ Object
Returns the value of attribute is_accepted.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def is_accepted @is_accepted end |
#is_current ⇒ Object
Returns the value of attribute is_current.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def is_current @is_current end |
#is_ontology_mutated ⇒ Object
Returns the value of attribute is_ontology_mutated.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def is_ontology_mutated @is_ontology_mutated end |
#is_safe_join ⇒ Object
Returns the value of attribute is_safe_join.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def is_safe_join @is_safe_join end |
#object ⇒ Object
Returns the value of attribute object.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def object @object end |
#patch ⇒ Object
Returns the value of attribute patch.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def patch @patch end |
#patch_object_ref ⇒ Object
Returns the value of attribute patch_object_ref.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def patch_object_ref @patch_object_ref end |
#review_digest ⇒ Object
Returns the value of attribute review_digest.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def review_digest @review_digest end |
#review_object_ref ⇒ Object
Returns the value of attribute review_object_ref.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def review_object_ref @review_object_ref end |
#review_version ⇒ Object
Returns the value of attribute review_version.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def review_version @review_version end |
#reviewer ⇒ Object
Returns the value of attribute reviewer.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def reviewer @reviewer end |
#superseded_by_review_id ⇒ Object
Returns the value of attribute superseded_by_review_id.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def superseded_by_review_id @superseded_by_review_id end |
#supersedes_review_id ⇒ Object
Returns the value of attribute supersedes_review_id.
28 29 30 |
# File 'lib/rafflesia/database_join_candidate_reviews/database_join_candidate_review_data.rb', line 28 def supersedes_review_id @supersedes_review_id end |