Class: Archimate::DataModel::PropertyDefinition
- Inherits:
-
Object
- Object
- Archimate::DataModel::PropertyDefinition
show all
- Includes:
- Comparison, Referenceable
- 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 collapse
Class Method Summary
collapse
#add_reference, #destroy, #model, #references, #remove_reference, #replace_item_with, #replace_with
Methods included from Comparison
#==, #[], #dig, #each, #hash, included, #initialize, #inspect, #pretty_print, #to_h
Instance Attribute Details
22
|
# File 'lib/archimate/data_model/property_definition.rb', line 22
model_attr :documentation, default: nil
|
#id ⇒ String
16
|
# File 'lib/archimate/data_model/property_definition.rb', line 16
model_attr :id
|
19
|
# File 'lib/archimate/data_model/property_definition.rb', line 19
model_attr :name
|
#other_attributes ⇒ Array<AnyAttribute>
28
|
# File 'lib/archimate/data_model/property_definition.rb', line 28
model_attr :other_attributes, default: []
|
#other_elements ⇒ Array<AnyElement>
25
|
# File 'lib/archimate/data_model/property_definition.rb', line 25
model_attr :other_elements, default: []
|
#type ⇒ String, NilClass
Note:
if type
is nil, then type “string” is assumed
33
|
# File 'lib/archimate/data_model/property_definition.rb', line 33
model_attr :type, default: nil
|
Class Method Details
.identifier_for_key(key) ⇒ Object
35
36
37
|
# File 'lib/archimate/data_model/property_definition.rb', line 35
def self.identifier_for_key(key)
(self.class.hash ^ key.hash).to_s(16)
end
|