Class: Pubnub::Revoke
- Includes:
- Concurrent::Async, Validator::Revoke
- Defined in:
- lib/pubnub/events/revoke.rb
Overview
Holds revoke 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) ⇒ Revoke
constructor
A new instance of Revoke.
Methods included from Validator::Revoke
Methods included from Validator::CommonValidator
#validate_origin, #validate_publish_key, #validate_subscribe_key, #validate_user_id
Methods inherited from PAM
#error_envelope, #signature, #valid_envelope
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) ⇒ Revoke
Returns a new instance of Revoke.
8 9 10 11 12 |
# File 'lib/pubnub/events/revoke.rb', line 8 def initialize(, app) @event = :grant super @ttl ||= Pubnub::Constants::DEFAULT_TTL end |