Class: Gcpc::Publisher::Engine::ChainedInterceptor
- Inherits:
-
Object
- Object
- Gcpc::Publisher::Engine::ChainedInterceptor
- Defined in:
- lib/gcpc/publisher/engine/chained_interceptor.rb
Instance Method Summary collapse
-
#initialize(interceptors) ⇒ ChainedInterceptor
constructor
A new instance of ChainedInterceptor.
- #intercept!(data, attributes, &block) ⇒ Object
Constructor Details
#initialize(interceptors) ⇒ ChainedInterceptor
Returns a new instance of ChainedInterceptor.
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
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 |