Class: ActivePath::Subscribers::Subscriber
- Inherits:
-
Object
- Object
- ActivePath::Subscribers::Subscriber
- Defined in:
- lib/active_path/subscribers/subscriber.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
4 5 6 |
# File 'lib/active_path/subscribers/subscriber.rb', line 4 def buffer @buffer end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
4 5 6 |
# File 'lib/active_path/subscribers/subscriber.rb', line 4 def context @context end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/active_path/subscribers/subscriber.rb', line 4 def end |
Instance Method Details
#call(name, started, finished, unique_id, payload) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/active_path/subscribers/subscriber.rb', line 6 def call(name, started, finished, unique_id, payload) @buffer = payload[:buffer] @context = payload[:context] = payload[:options] perform end |
#partial ⇒ Object
13 14 15 |
# File 'lib/active_path/subscribers/subscriber.rb', line 13 def partial .is_a?(Hash) ? [:partial] : .to_s end |
#perform ⇒ Object
17 18 19 |
# File 'lib/active_path/subscribers/subscriber.rb', line 17 def perform raise NotImplementedError end |