Class: Rafflesia::DatabaseJoinCandidateCompatibility

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/database_join_candidates/database_join_candidate_compatibility.rb

Constant Summary collapse

HASH_ATTRS =
{
  basis: :basis,
  semantic_keys: :semantic_keys,
  weak_column_matches: :weak_column_matches
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatabaseJoinCandidateCompatibility

Returns a new instance of DatabaseJoinCandidateCompatibility.



19
20
21
22
23
24
25
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_compatibility.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @basis = hash[:basis]
  @semantic_keys = (hash[:semantic_keys] || [])
  @weak_column_matches = (hash[:weak_column_matches] || [])
end

Instance Attribute Details

#basisObject

Returns the value of attribute basis.



14
15
16
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_compatibility.rb', line 14

def basis
  @basis
end

#semantic_keysObject

Returns the value of attribute semantic_keys.



14
15
16
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_compatibility.rb', line 14

def semantic_keys
  @semantic_keys
end

#weak_column_matchesObject

Returns the value of attribute weak_column_matches.



14
15
16
# File 'lib/rafflesia/database_join_candidates/database_join_candidate_compatibility.rb', line 14

def weak_column_matches
  @weak_column_matches
end