Class: Rafflesia::OntologyTypedKeyNode

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/ontology/ontology_typed_key_node.rb

Constant Summary collapse

HASH_ATTRS =
{
  columns: :columns,
  coordinate_systems: :coordinate_systems,
  id: :id,
  identifier_namespaces: :identifier_namespaces,
  identity_component_id: :identity_component_id,
  identity_component_size: :identity_component_size,
  key_variants: :key_variants,
  physical_types: :physical_types,
  relation: :relation,
  traversal_component_id: :traversal_component_id,
  traversal_component_size: :traversal_component_size,
  value_kinds: :value_kinds
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OntologyTypedKeyNode

Returns a new instance of OntologyTypedKeyNode.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @columns = (hash[:columns] || [])
  @coordinate_systems = (hash[:coordinate_systems] || [])
  @id = hash[:id]
  @identifier_namespaces = (hash[:identifier_namespaces] || [])
  @identity_component_id = hash[:identity_component_id]
  @identity_component_size = hash[:identity_component_size]
  @key_variants = (hash[:key_variants] || [])
  @physical_types = (hash[:physical_types] || [])
  @relation = hash[:relation]
  @traversal_component_id = hash[:traversal_component_id]
  @traversal_component_size = hash[:traversal_component_size]
  @value_kinds = (hash[:value_kinds] || [])
end

Instance Attribute Details

#columnsObject

Returns the value of attribute columns.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def columns
  @columns
end

#coordinate_systemsObject

Returns the value of attribute coordinate_systems.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def coordinate_systems
  @coordinate_systems
end

#idObject

Returns the value of attribute id.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def id
  @id
end

#identifier_namespacesObject

Returns the value of attribute identifier_namespaces.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def identifier_namespaces
  @identifier_namespaces
end

#identity_component_idObject

Returns the value of attribute identity_component_id.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def identity_component_id
  @identity_component_id
end

#identity_component_sizeObject

Returns the value of attribute identity_component_size.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def identity_component_size
  @identity_component_size
end

#key_variantsObject

Returns the value of attribute key_variants.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def key_variants
  @key_variants
end

#physical_typesObject

Returns the value of attribute physical_types.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def physical_types
  @physical_types
end

#relationObject

Returns the value of attribute relation.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def relation
  @relation
end

#traversal_component_idObject

Returns the value of attribute traversal_component_id.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def traversal_component_id
  @traversal_component_id
end

#traversal_component_sizeObject

Returns the value of attribute traversal_component_size.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def traversal_component_size
  @traversal_component_size
end

#value_kindsObject

Returns the value of attribute value_kinds.



23
24
25
# File 'lib/rafflesia/ontology/ontology_typed_key_node.rb', line 23

def value_kinds
  @value_kinds
end