Class: Pubnub::Revoke

Inherits:
PAM show all
Includes:
Celluloid
Defined in:
lib/pubnub/events/revoke.rb

Overview

Holds revoke functionality

Instance Attribute Summary

Attributes inherited from Event

#callback, #channel, #error_callback, #group, #idle_timeout, #open_timeout, #origin, #presence_callback, #read_timeout

Instance Method Summary (collapse)

Methods inherited from PAM

#error_envelope, #format_envelopes, #signature, #valid_envelope, #variables_for_signature

Methods inherited from Event

#finalized?, #fire, #sync?, #uri

Constructor Details

- (Revoke) initialize(options, app)

Returns a new instance of Revoke



7
8
9
10
11
# File 'lib/pubnub/events/revoke.rb', line 7

def initialize(options, app)
  @event = :grant
  super
  @ttl ||= Pubnub::Configuration::DEFAULT_TTL
end