Class: Rafflesia::OntologySemanticClosureViolation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologySemanticClosureViolation
- Defined in:
- lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb
Constant Summary collapse
- HASH_ATTRS =
{ axis: :axis, component_id: :component_id, key_node_ids: :key_node_ids, message: :message, position: :position, values: :values }.freeze
Instance Attribute Summary collapse
-
#axis ⇒ Object
Returns the value of attribute axis.
-
#component_id ⇒ Object
Returns the value of attribute component_id.
-
#key_node_ids ⇒ Object
Returns the value of attribute key_node_ids.
-
#message ⇒ Object
Returns the value of attribute message.
-
#position ⇒ Object
Returns the value of attribute position.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologySemanticClosureViolation
constructor
A new instance of OntologySemanticClosureViolation.
Constructor Details
#initialize(json) ⇒ OntologySemanticClosureViolation
Returns a new instance of OntologySemanticClosureViolation.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @axis = hash[:axis] @component_id = hash[:component_id] @key_node_ids = (hash[:key_node_ids] || []) @message = hash[:message] @position = hash[:position] @values = (hash[:values] || []) end |
Instance Attribute Details
#axis ⇒ Object
Returns the value of attribute axis.
17 18 19 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb', line 17 def axis @axis end |
#component_id ⇒ Object
Returns the value of attribute component_id.
17 18 19 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb', line 17 def component_id @component_id end |
#key_node_ids ⇒ Object
Returns the value of attribute key_node_ids.
17 18 19 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb', line 17 def key_node_ids @key_node_ids end |
#message ⇒ Object
Returns the value of attribute message.
17 18 19 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb', line 17 def @message end |
#position ⇒ Object
Returns the value of attribute position.
17 18 19 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb', line 17 def position @position end |
#values ⇒ Object
Returns the value of attribute values.
17 18 19 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_semantic_closure_violation.rb', line 17 def values @values end |