Class: Pubnub::WhereNow
- Inherits:
-
SingleEvent
- Object
- Event
- SingleEvent
- Pubnub::WhereNow
- Includes:
- Celluloid, Validator::WhereNow
- Defined in:
- lib/pubnub/events/where_now.rb
Overview
Holds where_now 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) ⇒ WhereNow
constructor
A new instance of WhereNow.
Methods included from Validator::WhereNow
Methods included from Validator::CommonValidator
#validate_origin, #validate_publish_key, #validate_subscribe_key
Methods inherited from Event
#finalized?, #fire, #send_request, #sync?, #uri
Constructor Details
#initialize(options, app) ⇒ WhereNow
Returns a new instance of WhereNow.
8 9 10 11 12 13 |
# File 'lib/pubnub/events/where_now.rb', line 8 def initialize(, app) super @uuid_looking_for = [:uuid] || ['uuid'] @uuid = app.uuid @event = :where_now end |