Class: Rafflesia::DatabaseJoinCandidateCompatibility
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCandidateCompatibility
- 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
-
#basis ⇒ Object
Returns the value of attribute basis.
-
#semantic_keys ⇒ Object
Returns the value of attribute semantic_keys.
-
#weak_column_matches ⇒ Object
Returns the value of attribute weak_column_matches.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCandidateCompatibility
constructor
A new instance of DatabaseJoinCandidateCompatibility.
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
#basis ⇒ Object
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_keys ⇒ Object
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_matches ⇒ Object
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 |