Method: SelfSDK::Services::Facts#subscribe
- Defined in:
- lib/services/facts.rb
permalink #subscribe(&block) ⇒ Object
Adds an observer for a fact response Whenever you receive a fact response registered observers will receive a notification.
@yield [request] Invokes the block with a fact response message.
84 85 86 |
# File 'lib/services/facts.rb', line 84 def subscribe(&block) @messaging.subscribe(:fact_response, &block) end |