Module: Pubnub

Defined in:
lib/pubnub.rb,
lib/pubnub/pam.rb,
lib/pubnub/uuid.rb,
lib/pubnub/error.rb,
lib/pubnub/event.rb,
lib/pubnub/heart.rb,
lib/pubnub/client.rb,
lib/pubnub/crypto.rb,
lib/pubnub/message.rb,
lib/pubnub/version.rb,
lib/pubnub/envelope.rb,
lib/pubnub/constants.rb,
lib/pubnub/formatter.rb,
lib/pubnub/subscriber.rb,
lib/pubnub/events/time.rb,
lib/pubnub/events/audit.rb,
lib/pubnub/events/grant.rb,
lib/pubnub/events/leave.rb,
lib/pubnub/events/state.rb,
lib/pubnub/single_event.rb,
lib/pubnub/client/events.rb,
lib/pubnub/configuration.rb,
lib/pubnub/events/revoke.rb,
lib/pubnub/client/helpers.rb,
lib/pubnub/error_envelope.rb,
lib/pubnub/events/history.rb,
lib/pubnub/events/publish.rb,
lib/pubnub/origin_manager.rb,
lib/pubnub/events/here_now.rb,
lib/pubnub/events/presence.rb,
lib/pubnub/subscribe_event.rb,
lib/pubnub/validators/time.rb,
lib/pubnub/events/heartbeat.rb,
lib/pubnub/events/set_state.rb,
lib/pubnub/events/subscribe.rb,
lib/pubnub/events/where_now.rb,
lib/pubnub/validators/audit.rb,
lib/pubnub/validators/grant.rb,
lib/pubnub/validators/leave.rb,
lib/pubnub/validators/state.rb,
lib/pubnub/validators/client.rb,
lib/pubnub/validators/revoke.rb,
lib/pubnub/client/connections.rb,
lib/pubnub/subscribe_callback.rb,
lib/pubnub/validators/history.rb,
lib/pubnub/validators/publish.rb,
lib/pubnub/validators/here_now.rb,
lib/pubnub/validators/presence.rb,
lib/pubnub/client/paged_history.rb,
lib/pubnub/validators/heartbeat.rb,
lib/pubnub/validators/set_state.rb,
lib/pubnub/validators/subscribe.rb,
lib/pubnub/validators/where_now.rb,
lib/pubnub/subscribe_event/adding.rb,
lib/pubnub/schemas/envelope_schema.rb,
lib/pubnub/subscribe_event/removing.rb,
lib/pubnub/subscribe_event/callbacks.rb,
lib/pubnub/subscribe_event/formatter.rb,
lib/pubnub/subscribe_event/heartbeat.rb,
lib/pubnub/events/channel_registration.rb,
lib/pubnub/validators/common_validator.rb,
lib/pubnub/validators/channel_registration.rb

Overview

Toplevel Pubnub module.

Defined Under Namespace

Modules: Configuration, Constants, Formatter, Message, Schemas, UUID, Validator Classes: ArgumentError, Audit, ChannelRegistration, Client, Crypto, Envelope, Error, ErrorEnvelope, Event, Grant, Heart, Heartbeat, HereNow, History, InitializationError, JSONParseError, Leave, OriginManager, PAM, Presence, Publish, RequestError, ResponseError, Revoke, SetState, SingleEvent, State, Subscribe, SubscribeCallback, SubscribeEvent, Subscriber, Time, WhereNow

Constant Summary collapse

VERSION =
'4.0.4'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clientObject

Returns the value of attribute client.



29
30
31
# File 'lib/pubnub.rb', line 29

def client
  @client
end

.loggerObject

Returns the value of attribute logger.



29
30
31
# File 'lib/pubnub.rb', line 29

def logger
  @logger
end

Class Method Details

.new(options = {}) ⇒ Object



31
32
33
# File 'lib/pubnub.rb', line 31

def new(options = {})
  Pubnub::Client.new(options)
end