Class: Pubnub::RevokeToken
- Inherits:
-
SingleEvent
- Object
- Event
- SingleEvent
- Pubnub::RevokeToken
- Includes:
- Concurrent::Async, Validator::RevokeToken
- Defined in:
- lib/pubnub/events/revoke_token.rb
Overview
Holds revoke token functionality
Instance Attribute Summary
Attributes inherited from Event
#callback, #channel, #channel_group, #fresh_clone, #given_options, #group, #idle_timeout, #open_timeout, #origin, #presence_callback, #read_timeout, #ssl, #state, #wildcard_channel, #with_presence
Instance Method Summary collapse
-
#initialize(options, app) ⇒ RevokeToken
constructor
A new instance of RevokeToken.
Methods included from Validator::RevokeToken
Methods included from Validator::CommonValidator
#validate_origin, #validate_publish_key, #validate_subscribe_key, #validate_user_id
Methods inherited from Event
#finalized?, #fire, #send_request, #sync?, #uri
Methods included from Event::EFormatter
#format_channels, #format_envelopes, #format_group
Constructor Details
#initialize(options, app) ⇒ RevokeToken
Returns a new instance of RevokeToken.
7 8 9 10 11 12 13 |
# File 'lib/pubnub/events/revoke_token.rb', line 7 def initialize(, app) @event = :revoke_token super @token = @token.split(' ') .map{ |part| CGI.escape(part) } .join("%20") end |