PubSubHubbub::Subscriber
Inherits Reference < Object
Constructors
new(topic : String, secret : Nil | String = nil)
SourceClass methods
emit(subscriber : Subscriber, event : Event, data : String | Nil = nil)
Send signal to call functions attached to corresponding Event
hooks
Sourceon(event : Event, &block : Subscriber, String -> )
Attach a block (function) to a specific 'Event', when the event occurs, the function will be called.
Instance methods
check_signature(signature : String, body : String | Nil)
Recompute the SHA1 signature with the shared secret using the same method as the hub.
emit(event : Event, data : String | Nil = nil)
Sourcesecret
Sourcesecret=(secret : String | Nil)
Sourcesubscribe
Sourcetopic
Sourcetopic=(topic : String)
Sourceunsubscribe
Source