Class: Pubnub::Grant
- Includes:
- Celluloid, Validator::Grant
- Defined in:
- lib/pubnub/events/grant.rb
Overview
Holds grant functionality
Instance Attribute Summary
Attributes inherited from Event
#callback, #channel, #fresh_clone, #given_options, #group, #idle_timeout, #open_timeout, #origin, #presence_callback, #read_timeout, #ssl, #state, #wildcard_channel
Instance Method Summary collapse
-
#initialize(options, app) ⇒ Grant
constructor
A new instance of Grant.
Methods included from Validator::Grant
Methods included from Validator::CommonValidator
#validate_origin, #validate_publish_key, #validate_subscribe_key
Methods inherited from PAM
#current_operation, #error_envelope, #format_envelopes, #signature, #valid_envelope, #variables_for_signature
Methods inherited from Event
#finalized?, #fire, #send_request, #sync?, #uri
Constructor Details
#initialize(options, app) ⇒ Grant
Returns a new instance of Grant.
8 9 10 11 12 |
# File 'lib/pubnub/events/grant.rb', line 8 def initialize(, app) @event = :grant super @ttl ||= Pubnub::Constants::DEFAULT_TTL end |