Module: Stoplight::_StateTransitionNotifier

Included in:
Infrastructure::Notifier::FailSafe, Infrastructure::Notifier::IO, Infrastructure::Notifier::Logger, Notifier::Base
Defined in:
sig/stoplight/ports/state_transition_notifier.rbs

Instance Method Summary collapse

Instance Method Details

#==Boolean

Object methods needed for comparison/inspection

Parameters:

  • (Object)

Returns:

  • (Boolean)


12
# File 'sig/stoplight/ports/state_transition_notifier.rbs', line 12

def ==: (untyped) -> bool

#classClass

Returns:

  • (Class)


13
# File 'sig/stoplight/ports/state_transition_notifier.rbs', line 13

def class: -> Class

#notifyvoid

This method returns an undefined value.

Sends a notification when a Stoplight changes state.

Parameters:

  • config

    The Stoplight instance triggering the notification.

  • from_color

    The previous state color of the Stoplight.

  • to_color

    The new state color of the Stoplight.

  • error

    The error (if any) that caused the state change.

  • (_LightInfo)


9
# File 'sig/stoplight/ports/state_transition_notifier.rbs', line 9

def notify: (_LightInfo, color from_color, color to_color, ?StandardError? error) -> void