Class: Rafflesia::OntologyConnectivityClassificationData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyConnectivityClassificationData
- Defined in:
- lib/rafflesia/ontology/ontology_connectivity_classification_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_relations: :candidate_relations, classification: :classification, reason: :reason, relation: :relation }.freeze
Instance Attribute Summary collapse
-
#candidate_relations ⇒ Object
Returns the value of attribute candidate_relations.
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#relation ⇒ Object
Returns the value of attribute relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyConnectivityClassificationData
constructor
A new instance of OntologyConnectivityClassificationData.
Constructor Details
#initialize(json) ⇒ OntologyConnectivityClassificationData
Returns a new instance of OntologyConnectivityClassificationData.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/ontology/ontology_connectivity_classification_data.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @candidate_relations = (hash[:candidate_relations] || []) @classification = hash[:classification] @reason = hash[:reason] @relation = hash[:relation] end |
Instance Attribute Details
#candidate_relations ⇒ Object
Returns the value of attribute candidate_relations.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_connectivity_classification_data.rb', line 15 def candidate_relations @candidate_relations end |
#classification ⇒ Object
Returns the value of attribute classification.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_connectivity_classification_data.rb', line 15 def classification @classification end |
#reason ⇒ Object
Returns the value of attribute reason.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_connectivity_classification_data.rb', line 15 def reason @reason end |
#relation ⇒ Object
Returns the value of attribute relation.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_connectivity_classification_data.rb', line 15 def relation @relation end |