Class: Rafflesia::RelationRelationship
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RelationRelationship
- Defined in:
- lib/rafflesia/registry/relation_relationship.rb
Constant Summary collapse
- HASH_ATTRS =
{ alt_local_columns: :alt_local_columns, alt_remote_columns: :alt_remote_columns, cardinality: :cardinality, coordinate_notes: :coordinate_notes, definition_source: :definition_source, id: :id, is_lossy: :is_lossy, is_range_mapping: :is_range_mapping, local_columns: :local_columns, relation: :relation, remote_columns: :remote_columns }.freeze
Instance Attribute Summary collapse
-
#alt_local_columns ⇒ Object
Returns the value of attribute alt_local_columns.
-
#alt_remote_columns ⇒ Object
Returns the value of attribute alt_remote_columns.
-
#cardinality ⇒ Object
Returns the value of attribute cardinality.
-
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
-
#definition_source ⇒ Object
Returns the value of attribute definition_source.
-
#id ⇒ Object
Returns the value of attribute id.
-
#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.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
Instance Method Summary collapse
-
#initialize(json) ⇒ RelationRelationship
constructor
A new instance of RelationRelationship.
Constructor Details
#initialize(json) ⇒ RelationRelationship
Returns a new instance of RelationRelationship.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @alt_local_columns = (hash[:alt_local_columns] || []) @alt_remote_columns = (hash[:alt_remote_columns] || []) @cardinality = hash[:cardinality] @coordinate_notes = hash[:coordinate_notes] @definition_source = hash[:definition_source] @id = hash[:id] @is_lossy = hash[:is_lossy] @is_range_mapping = hash[:is_range_mapping] @local_columns = (hash[:local_columns] || []) @relation = hash[:relation] @remote_columns = (hash[:remote_columns] || []) end |
Instance Attribute Details
#alt_local_columns ⇒ Object
Returns the value of attribute alt_local_columns.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def alt_local_columns @alt_local_columns end |
#alt_remote_columns ⇒ Object
Returns the value of attribute alt_remote_columns.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def alt_remote_columns @alt_remote_columns end |
#cardinality ⇒ Object
Returns the value of attribute cardinality.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def cardinality @cardinality end |
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def coordinate_notes @coordinate_notes end |
#definition_source ⇒ Object
Returns the value of attribute definition_source.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def definition_source @definition_source end |
#id ⇒ Object
Returns the value of attribute id.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def id @id end |
#is_lossy ⇒ Object
Returns the value of attribute is_lossy.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def is_lossy @is_lossy end |
#is_range_mapping ⇒ Object
Returns the value of attribute is_range_mapping.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def is_range_mapping @is_range_mapping end |
#local_columns ⇒ Object
Returns the value of attribute local_columns.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def local_columns @local_columns end |
#relation ⇒ Object
Returns the value of attribute relation.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def relation @relation end |
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
22 23 24 |
# File 'lib/rafflesia/registry/relation_relationship.rb', line 22 def remote_columns @remote_columns end |