Class: Diagrams::Elements::ClassEntity
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Diagrams::Elements::ClassEntity
- Includes:
- Types
- Defined in:
- lib/diagrams/elements/class_entity.rb
Overview
Represents a class entity in a UML Class Diagram.
Instance Method Summary collapse
-
#to_h ⇒ Hash{Symbol => String | Array<String>}
Returns a hash representation suitable for serialization.
Instance Method Details
#to_h ⇒ Hash{Symbol => String | Array<String>}
Returns a hash representation suitable for serialization.
22 23 24 25 26 27 28 |
# File 'lib/diagrams/elements/class_entity.rb', line 22 def to_h { name:, attributes: self[:attributes], methods: self[:methods] } end |