class Curator::Relay

Overview

Responsible for applying the filters for an event And if the event passes the filter, applying the transformation on the event, i.e pepper the ref and appending the cur relaying them to the available forwards.

Defined in:

relay/relay.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rules : Curator::Filter::Rules, forwards_manager : Curator::Forwards::Manager, transformer : Curator::Transformer) #

[View source]

Instance Method Detail

def call(event : Curator::Event) #

Performs following

  1. Apply Filters
  2. Transform the event
  3. Hand it to available Forwards

[View source]
def forwards_manager : Curator::Forwards::Manager #

[View source]

[View source]
def transformer : Curator::Transformer #

[View source]