Class: Diagrams::Elements::TimelineEvent

Inherits:
Dry::Struct
  • Object
show all
Includes:
Types
Defined in:
lib/diagrams/elements/timeline_event.rb

Overview

Represents a single event description within a timeline period.

Instance Method Summary collapse

Instance Method Details

#to_hHash{Symbol => String}

Returns a hash representation suitable for serialization.

Returns:

  • (Hash{Symbol => String})


14
15
16
17
18
# File 'lib/diagrams/elements/timeline_event.rb', line 14

def to_h
  {
    description:
  }
end