Class: Archimate::DataModel::AnyAttribute
- Inherits:
-
Object
- Object
- Archimate::DataModel::AnyAttribute
- Includes:
- Comparison
- Defined in:
- lib/archimate/data_model/any_attribute.rb
Overview
An instance of any XML attribute for arbitrary content like metadata
Instance Attribute Summary collapse
- #attribute ⇒ String readonly
- #prefix ⇒ String readonly
- #value ⇒ String readonly
Instance Method Summary collapse
-
#initialize(attribute, value, prefix: "") ⇒ AnyAttribute
constructor
A new instance of AnyAttribute.
Methods included from Comparison
#==, #[], #dig, #each, #hash, included, #pretty_print, #to_h
Constructor Details
#initialize(attribute, value, prefix: "") ⇒ AnyAttribute
Returns a new instance of AnyAttribute.
19 20 21 22 23 |
# File 'lib/archimate/data_model/any_attribute.rb', line 19 def initialize(attribute, value, prefix: "") @attribute = attribute @prefix = prefix @value = value end |
Instance Attribute Details
#attribute ⇒ String (readonly)
11 |
# File 'lib/archimate/data_model/any_attribute.rb', line 11 model_attr :attribute |
#prefix ⇒ String (readonly)
14 |
# File 'lib/archimate/data_model/any_attribute.rb', line 14 model_attr :prefix |
#value ⇒ String (readonly)
17 |
# File 'lib/archimate/data_model/any_attribute.rb', line 17 model_attr :value |