Class: Pubnub::Subscribe

Inherits:
SubscribeEvent show all
Includes:
Celluloid
Defined in:
lib/pubnub/events/subscribe.rb

Overview

Holds subscribe functionality, beware, most of subscribe functionality is held by SubscribeEvent

Instance Attribute Summary

Attributes inherited from SubscribeEvent

#heart

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 SubscribeEvent

#fire, #leave_all

Methods included from Formatter

channels_for_url, classify_method, encode, format_channel, format_group, format_message, format_presence_channel, make_channel_array, params_hash_to_url_params, parse_json, valid_json?

Methods included from Pubnub::SubscribeEvent::Removing

#remove, #remove_channels, #remove_groups

Methods included from Pubnub::SubscribeEvent::Adding

#add, #add_channels, #add_groups

Methods inherited from Event

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

Constructor Details

- (Subscribe) initialize(options, app)

Returns a new instance of Subscribe



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

def initialize(options, app)
  @event = :subscribe
  super
end