Class: Protoboard::Adapters::BaseAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/protoboard/adapters/base_adapter.rb

Overview

This class is responsible to encapsulate every action that are commom between all adapters

Direct Known Subclasses

StoplightAdapter

Class Method Summary collapse

Class Method Details

.execute_after_circuit_callbacks(circuit_execution) ⇒ Object

Manages the execution of the code intended to run after circuit execution



18
19
20
21
# File 'lib/protoboard/adapters/base_adapter.rb', line 18

def execute_after_circuit_callbacks(circuit_execution)
  after_global_callback(circuit_execution)
  after_circuit_callback(circuit_execution)
end

.execute_before_circuit_callbacks(circuit_execution) ⇒ Object

Manages the execution of the code intended to run before circuit execution



11
12
13
14
# File 'lib/protoboard/adapters/base_adapter.rb', line 11

def execute_before_circuit_callbacks(circuit_execution)
  before_global_callback(circuit_execution)
  before_circuit_callback(circuit_execution)
end