Class: Rafflesia::OntologySemanticClosureViolation

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#axisObject

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_idObject

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_idsObject

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

#messageObject

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
  @message
end

#positionObject

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

#valuesObject

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