Class: Rafflesia::DatabaseJoinCandidateProposalData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_digestObject

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_idObject

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_relationObject

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

#idObject

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_lossyObject

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_mutatedObject

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_mappingObject

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_joinObject

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_columnsObject

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

#objectObject

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_cardinalityObject

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_digestObject

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_refObject

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_columnsObject

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_actionsObject

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_fieldsObject

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_templateObject

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_relationObject

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