Class: ZK::EventHandlerSubscription
- Inherits:
-
Object
- Object
- ZK::EventHandlerSubscription
- Defined in:
- lib/z_k/event_handler_subscription.rb
Overview
the subscription object that is passed back from subscribing to events.
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#event_handler ⇒ Object
Returns the value of attribute event_handler.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#unsubscribe ⇒ Object
(also: #unregister)
unsubscribe from the path or state you were watching.
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback.
6 7 8 |
# File 'lib/z_k/event_handler_subscription.rb', line 6 def callback @callback end |
#event_handler ⇒ Object
Returns the value of attribute event_handler.
6 7 8 |
# File 'lib/z_k/event_handler_subscription.rb', line 6 def event_handler @event_handler end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/z_k/event_handler_subscription.rb', line 6 def path @path end |
Instance Method Details
#unsubscribe ⇒ Object Also known as: unregister
unsubscribe from the path or state you were watching
16 17 18 |
# File 'lib/z_k/event_handler_subscription.rb', line 16 def unsubscribe @event_handler.unregister(self) end |