Class: Archimate::DataModel::PropertyDefinition

Inherits:
NamedReferenceable show all
Defined in:
lib/archimate/data_model/property_definition.rb

Overview

A Property definition type containing its unique identifier, name, and data type.

Instance Attribute Summary

Attributes inherited from ArchimateNode

#parent_attribute_name, #struct_instance_variables

Class Method Summary collapse

Methods inherited from ArchimateNode

#ancestors, #build_index, #clone, #compact!, #delete, #diff, #dup, #element_by_id, #id, #in_model, #in_model=, #initialize, #parent, #parent=, #path, #primitive?, #referenced_identified_nodes, #set, #with

Constructor Details

This class inherits a constructor from Archimate::DataModel::ArchimateNode

Class Method Details

.identifier_for_key(key) ⇒ Object



9
10
11
# File 'lib/archimate/data_model/property_definition.rb', line 9

def self.identifier_for_key(key)
  (self.class.hash ^ key.hash).to_s(16)
end