class PubSubHubbub::Subscriber
- PubSubHubbub::Subscriber
- Reference
- Object
Defined in:
pubsubhubbub/subscriber.crConstructors
Class Method Summary
-
.emit(subscriber : Subscriber, event : Event, data : String | Nil = nil)
Send signal to call functions attached to corresponding
Event
- .hooks
-
.on(event : Event, &block : Subscriber, String -> )
Attach a block (function) to a specific 'Event', when the event occurs, the function will be called.
Instance Method Summary
-
#challenge_verification(params : HTTP::Params)
Check if hub.challenge exists and return them.
-
#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)
- #secret : String | Nil
- #secret=(secret : String | Nil)
- #subscribe
- #topic : String
- #topic=(topic : String)
- #unsubscribe
Constructor Detail
Class Method Detail
Send signal to call functions attached to corresponding Event
Attach a block (function) to a specific 'Event', when the event occurs, the function will be called.
Instance Method Detail
def check_signature(signature : String, body : String | Nil)
#
Recompute the SHA1 signature with the shared secret using the same method as the hub.