Class: Low::Events::BranchEvent

Inherits:
HiddenEvent show all
Defined in:
lib/pool/branch_event.rb

Instance Attribute Summary collapse

Attributes inherited from HiddenEvent

#action, #created_at, #key

Instance Method Summary collapse

Methods inherited from HiddenEvent

inherited, #trigger, trigger

Constructor Details

#initialize(event_tree:, event:) ⇒ BranchEvent

Returns a new instance of BranchEvent.



10
11
12
13
14
15
# File 'lib/pool/branch_event.rb', line 10

def initialize(event_tree:, event:)
  super(key: BranchEvent, action: :branch)

  @event_tree = event_tree
  @event = event
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



8
9
10
# File 'lib/pool/branch_event.rb', line 8

def event
  @event
end

#event_treeObject (readonly)

Returns the value of attribute event_tree.



8
9
10
# File 'lib/pool/branch_event.rb', line 8

def event_tree
  @event_tree
end