Class: Rafflesia::DatabaseJoinCandidateProposalData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCandidateProposalData
- Defined in:
- lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_evidence_digest: :candidate_evidence_digest, candidate_id: :candidate_id, from_relation: :from_relation, id: :id, is_lossy: :is_lossy, is_ontology_mutated: :is_ontology_mutated, is_range_mapping: :is_range_mapping, is_safe_join: :is_safe_join, local_columns: :local_columns, object: :object, observed_cardinality: :observed_cardinality, ontology_digest: :ontology_digest, proposal_object_ref: :proposal_object_ref, remote_columns: :remote_columns, required_actions: :required_actions, required_review_fields: :required_review_fields, review_template: :review_template, to_relation: :to_relation }.freeze
Instance Attribute Summary collapse
-
#candidate_evidence_digest ⇒ Object
Returns the value of attribute candidate_evidence_digest.
-
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
-
#from_relation ⇒ Object
Returns the value of attribute from_relation.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
-
#is_ontology_mutated ⇒ Object
Returns the value of attribute is_ontology_mutated.
-
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
-
#is_safe_join ⇒ Object
Returns the value of attribute is_safe_join.
-
#local_columns ⇒ Object
Returns the value of attribute local_columns.
-
#object ⇒ Object
Returns the value of attribute object.
-
#observed_cardinality ⇒ Object
Returns the value of attribute observed_cardinality.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#proposal_object_ref ⇒ Object
Returns the value of attribute proposal_object_ref.
-
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
-
#required_actions ⇒ Object
Returns the value of attribute required_actions.
-
#required_review_fields ⇒ Object
Returns the value of attribute required_review_fields.
-
#review_template ⇒ Object
Returns the value of attribute review_template.
-
#to_relation ⇒ Object
Returns the value of attribute to_relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCandidateProposalData
constructor
A new instance of DatabaseJoinCandidateProposalData.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCandidateProposalData
Returns a new instance of DatabaseJoinCandidateProposalData.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 49 def initialize(json) super() hash = self.class.normalize(json) @candidate_evidence_digest = hash[:candidate_evidence_digest] @candidate_id = hash[:candidate_id] @from_relation = hash[:from_relation] @id = hash[:id] @is_lossy = hash[:is_lossy] @is_ontology_mutated = hash[:is_ontology_mutated] @is_range_mapping = hash[:is_range_mapping] @is_safe_join = hash[:is_safe_join] @local_columns = (hash[:local_columns] || []) @object = hash[:object] @observed_cardinality = hash[:observed_cardinality] @ontology_digest = hash[:ontology_digest] @proposal_object_ref = hash[:proposal_object_ref] ? Rafflesia::ObjectRef.new(hash[:proposal_object_ref]) : nil @remote_columns = (hash[:remote_columns] || []) @required_actions = (hash[:required_actions] || []) @required_review_fields = (hash[:required_review_fields] || []) @review_template = hash[:review_template] ? Rafflesia::DatabaseJoinCandidateReviewTemplate.new(hash[:review_template]) : nil @to_relation = hash[:to_relation] end |
Instance Attribute Details
#candidate_evidence_digest ⇒ Object
Returns the value of attribute candidate_evidence_digest.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def candidate_evidence_digest @candidate_evidence_digest end |
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def candidate_id @candidate_id end |
#from_relation ⇒ Object
Returns the value of attribute from_relation.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def from_relation @from_relation end |
#id ⇒ Object
Returns the value of attribute id.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def id @id end |
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def is_lossy @is_lossy end |
#is_ontology_mutated ⇒ Object
Returns the value of attribute is_ontology_mutated.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def is_ontology_mutated @is_ontology_mutated end |
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def is_range_mapping @is_range_mapping end |
#is_safe_join ⇒ Object
Returns the value of attribute is_safe_join.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def is_safe_join @is_safe_join end |
#local_columns ⇒ Object
Returns the value of attribute local_columns.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def local_columns @local_columns end |
#object ⇒ Object
Returns the value of attribute object.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def object @object end |
#observed_cardinality ⇒ Object
Returns the value of attribute observed_cardinality.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def observed_cardinality @observed_cardinality end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def ontology_digest @ontology_digest end |
#proposal_object_ref ⇒ Object
Returns the value of attribute proposal_object_ref.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def proposal_object_ref @proposal_object_ref end |
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def remote_columns @remote_columns end |
#required_actions ⇒ Object
Returns the value of attribute required_actions.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def required_actions @required_actions end |
#required_review_fields ⇒ Object
Returns the value of attribute required_review_fields.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def required_review_fields @required_review_fields end |
#review_template ⇒ Object
Returns the value of attribute review_template.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def review_template @review_template end |
#to_relation ⇒ Object
Returns the value of attribute to_relation.
29 30 31 |
# File 'lib/rafflesia/database_join_candidate_proposals/database_join_candidate_proposal_data.rb', line 29 def to_relation @to_relation end |