Class: Gcpc::Publisher::Engine::ChainedInterceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/gcpc/publisher/engine/chained_interceptor.rb

Instance Method Summary collapse

Constructor Details

#initialize(interceptors) ⇒ ChainedInterceptor

Returns a new instance of ChainedInterceptor.

Parameters:



6
7
8
# File 'lib/gcpc/publisher/engine/chained_interceptor.rb', line 6

def initialize(interceptors)
  @interceptors = interceptors
end

Instance Method Details

#intercept!(data, attributes, &block) ⇒ Object

Parameters:

  • data (String)
  • attributes (Hash)
  • block (Proc)


13
14
15
# File 'lib/gcpc/publisher/engine/chained_interceptor.rb', line 13

def intercept!(data, attributes, &block)
  do_intercept!(@interceptors, data, attributes, &block)
end