Class: Rafflesia::OntologyOnboardingRelationshipPatchData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyOnboardingRelationshipPatchData
- Defined in:
- lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ cardinality: :cardinality, coordinate_notes: :coordinate_notes, from_relation: :from_relation, local_columns: :local_columns, remote_columns: :remote_columns, review_digest: :review_digest, review_id: :review_id, semantic_basis: :semantic_basis, 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.
-
#local_columns ⇒ Object
Returns the value of attribute local_columns.
-
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
-
#review_digest ⇒ Object
Returns the value of attribute review_digest.
-
#review_id ⇒ Object
Returns the value of attribute review_id.
-
#semantic_basis ⇒ Object
Returns the value of attribute semantic_basis.
-
#to_relation ⇒ Object
Returns the value of attribute to_relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyOnboardingRelationshipPatchData
constructor
A new instance of OntologyOnboardingRelationshipPatchData.
Constructor Details
#initialize(json) ⇒ OntologyOnboardingRelationshipPatchData
Returns a new instance of OntologyOnboardingRelationshipPatchData.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @cardinality = hash[:cardinality] @coordinate_notes = hash[:coordinate_notes] @from_relation = hash[:from_relation] @local_columns = (hash[:local_columns] || []) @remote_columns = (hash[:remote_columns] || []) @review_digest = hash[:review_digest] @review_id = hash[:review_id] @semantic_basis = hash[:semantic_basis] @to_relation = hash[:to_relation] end |
Instance Attribute Details
#cardinality ⇒ Object
Returns the value of attribute cardinality.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def cardinality @cardinality end |
#coordinate_notes ⇒ Object
Returns the value of attribute coordinate_notes.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def coordinate_notes @coordinate_notes end |
#from_relation ⇒ Object
Returns the value of attribute from_relation.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def from_relation @from_relation end |
#local_columns ⇒ Object
Returns the value of attribute local_columns.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def local_columns @local_columns end |
#remote_columns ⇒ Object
Returns the value of attribute remote_columns.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def remote_columns @remote_columns end |
#review_digest ⇒ Object
Returns the value of attribute review_digest.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def review_digest @review_digest end |
#review_id ⇒ Object
Returns the value of attribute review_id.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def review_id @review_id end |
#semantic_basis ⇒ Object
Returns the value of attribute semantic_basis.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def semantic_basis @semantic_basis end |
#to_relation ⇒ Object
Returns the value of attribute to_relation.
20 21 22 |
# File 'lib/rafflesia/ontology/ontology_onboarding_relationship_patch_data.rb', line 20 def to_relation @to_relation end |