Class: Rafflesia::OntologyTypedKeyEdge
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyTypedKeyEdge
- Defined in:
- lib/rafflesia/ontology/ontology_typed_key_edge.rb
Constant Summary collapse
- HASH_ATTRS =
{ cardinality: :cardinality, definition_source: :definition_source, from_key_id: :from_key_id, from_relation: :from_relation, id: :id, is_strict: :is_strict, key_variant: :key_variant, kind: :kind, to_key_id: :to_key_id, to_relation: :to_relation }.freeze
Instance Attribute Summary collapse
-
#cardinality ⇒ Object
Returns the value of attribute cardinality.
-
#definition_source ⇒ Object
Returns the value of attribute definition_source.
-
#from_key_id ⇒ Object
Returns the value of attribute from_key_id.
-
#from_relation ⇒ Object
Returns the value of attribute from_relation.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_strict ⇒ Object
Returns the value of attribute is_strict.
-
#key_variant ⇒ Object
Returns the value of attribute key_variant.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#to_key_id ⇒ Object
Returns the value of attribute to_key_id.
-
#to_relation ⇒ Object
Returns the value of attribute to_relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyTypedKeyEdge
constructor
A new instance of OntologyTypedKeyEdge.
Constructor Details
#initialize(json) ⇒ OntologyTypedKeyEdge
Returns a new instance of OntologyTypedKeyEdge.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @cardinality = hash[:cardinality] @definition_source = hash[:definition_source] @from_key_id = hash[:from_key_id] @from_relation = hash[:from_relation] @id = hash[:id] @is_strict = hash[:is_strict] @key_variant = hash[:key_variant] @kind = hash[:kind] @to_key_id = hash[:to_key_id] @to_relation = hash[:to_relation] end |
Instance Attribute Details
#cardinality ⇒ Object
Returns the value of attribute cardinality.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def cardinality @cardinality end |
#definition_source ⇒ Object
Returns the value of attribute definition_source.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def definition_source @definition_source end |
#from_key_id ⇒ Object
Returns the value of attribute from_key_id.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def from_key_id @from_key_id end |
#from_relation ⇒ Object
Returns the value of attribute from_relation.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def from_relation @from_relation end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def id @id end |
#is_strict ⇒ Object
Returns the value of attribute is_strict.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def is_strict @is_strict end |
#key_variant ⇒ Object
Returns the value of attribute key_variant.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def key_variant @key_variant end |
#kind ⇒ Object
Returns the value of attribute kind.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def kind @kind end |
#to_key_id ⇒ Object
Returns the value of attribute to_key_id.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def to_key_id @to_key_id end |
#to_relation ⇒ Object
Returns the value of attribute to_relation.
21 22 23 |
# File 'lib/rafflesia/ontology/ontology_typed_key_edge.rb', line 21 def to_relation @to_relation end |