Class: Rafflesia::OntologyJoinPatchRelationship
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyJoinPatchRelationship
- Defined in:
- lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb
Constant Summary collapse
- HASH_ATTRS =
{ cardinality: :cardinality, coordinate_notes: :coordinate_notes, from_relation: :from_relation, is_lossy: :is_lossy, is_range_mapping: :is_range_mapping, local_columns: :local_columns, remote_columns: :remote_columns, to_relation: :to_relation }.freeze
Instance Attribute Summary collapse
-
#cardinality ⇒ Object
Returns the value of attribute cardinality.
-
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
-
#from_relation ⇒ Object
Returns the value of attribute from_relation.
-
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
-
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
-
#local_columns ⇒ Object
Returns the value of attribute local_columns.
-
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
-
#to_relation ⇒ Object
Returns the value of attribute to_relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyJoinPatchRelationship
constructor
A new instance of OntologyJoinPatchRelationship.
Constructor Details
#initialize(json) ⇒ OntologyJoinPatchRelationship
Returns a new instance of OntologyJoinPatchRelationship.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @cardinality = hash[:cardinality] @coordinate_notes = hash[:coordinate_notes] @from_relation = hash[:from_relation] @is_lossy = hash[:is_lossy] @is_range_mapping = hash[:is_range_mapping] @local_columns = (hash[:local_columns] || []) @remote_columns = (hash[:remote_columns] || []) @to_relation = hash[:to_relation] end |
Instance Attribute Details
#cardinality ⇒ Object
Returns the value of attribute cardinality.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def cardinality @cardinality end |
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def coordinate_notes @coordinate_notes end |
#from_relation ⇒ Object
Returns the value of attribute from_relation.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def from_relation @from_relation end |
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def is_lossy @is_lossy end |
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def is_range_mapping @is_range_mapping end |
#local_columns ⇒ Object
Returns the value of attribute local_columns.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def local_columns @local_columns end |
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def remote_columns @remote_columns end |
#to_relation ⇒ Object
Returns the value of attribute to_relation.
19 20 21 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_patch_relationship.rb', line 19 def to_relation @to_relation end |