Class: AASMMermaid::Event
- Inherits:
-
Object
- Object
- AASMMermaid::Event
- Defined in:
- lib/aasm_mermaid/event.rb
Overview
Handles AASM event mapping to diagram transition rows
Instance Method Summary collapse
-
#initialize(aasm_event:) ⇒ Event
constructor
A new instance of Event.
-
#transitions ⇒ Array<AASMMermaid::Transition>
Array of mermaid transition rows.
Constructor Details
#initialize(aasm_event:) ⇒ Event
Returns a new instance of Event.
8 9 10 |
# File 'lib/aasm_mermaid/event.rb', line 8 def initialize(aasm_event:) self.aasm_event = aasm_event end |
Instance Method Details
#transitions ⇒ Array<AASMMermaid::Transition>
Returns array of mermaid transition rows.
13 14 15 16 17 |
# File 'lib/aasm_mermaid/event.rb', line 13 def transitions return @transitions if @transitions @transitions = mapped_transitions end |