Class: Pubnub::Signal

Inherits:
SingleEvent show all
Includes:
Concurrent::Async, Validator::Signal
Defined in:
lib/pubnub/events/signal.rb

Overview

Holds history functionality

Instance Attribute Summary collapse

Attributes inherited from Event

#callback, #channel, #channel_group, #fresh_clone, #given_options, #group, #idle_timeout, #open_timeout, #origin, #presence_callback, #read_timeout, #ssl, #state, #wildcard_channel, #with_presence

Instance Method Summary collapse

Methods included from Validator::Signal

#validate!

Methods included from Validator::CommonValidator

#validate_origin, #validate_publish_key, #validate_subscribe_key, #validate_user_id

Methods inherited from Event

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

Methods included from Event::EFormatter

#format_channels, #format_envelopes, #format_group

Constructor Details

#initialize(options, app) ⇒ Signal

Returns a new instance of Signal.



12
13
14
15
16
17
18
# File 'lib/pubnub/events/signal.rb', line 12

def initialize(options, app)
  @event = :signal
  @telemetry_name = :l_sig
  super
  @sequence_number = sequence_number!
  @origination_time_token = @app.generate_ortt
end

Instance Attribute Details

#storeObject (readonly)

Returns the value of attribute store.



10
11
12
# File 'lib/pubnub/events/signal.rb', line 10

def store
  @store
end