Class: Archimate::Export::PropertiesHash
- Inherits:
-
Object
- Object
- Archimate::Export::PropertiesHash
- Defined in:
- lib/archimate/export/jsonl.rb
Instance Attribute Summary collapse
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize(properties) ⇒ PropertiesHash
constructor
A new instance of PropertiesHash.
- #to_h ⇒ Object
Constructor Details
#initialize(properties) ⇒ PropertiesHash
Returns a new instance of PropertiesHash.
54 55 56 |
# File 'lib/archimate/export/jsonl.rb', line 54 def initialize(properties) @properties = properties end |
Instance Attribute Details
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
52 53 54 |
# File 'lib/archimate/export/jsonl.rb', line 52 def properties @properties end |
Instance Method Details
#to_h ⇒ Object
58 59 60 61 62 |
# File 'lib/archimate/export/jsonl.rb', line 58 def to_h properties.each_with_object({}) do |property, hash| hash[property.key.to_s] = property.value.to_s end end |