Class: Archimate::DataModel::Property
- Inherits:
-
ArchimateNode
- Object
- Dry::Struct
- ArchimateNode
- Archimate::DataModel::Property
- Defined in:
- lib/archimate/data_model/property.rb
Overview
A Property instance type declaring the reference to a Property definition and containing the Property value.
Instance Attribute Summary
Attributes inherited from ArchimateNode
#parent_attribute_name, #struct_instance_variables
Instance 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
Instance Method Details
#key ⇒ Object
13 14 15 |
# File 'lib/archimate/data_model/property.rb', line 13 def key property_definition.name end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/archimate/data_model/property.rb', line 9 def to_s "Property(key: #{property_definition.name}, value: #{value || 'no value'})" end |
#value ⇒ Object
17 18 19 |
# File 'lib/archimate/data_model/property.rb', line 17 def value values.first end |