Class: Pubnub::RemoveDeviceFromPush

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

Overview

Push related event

Instance Attribute Summary

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::RemoveDeviceFromPush

#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) ⇒ RemoveDeviceFromPush

Returns a new instance of RemoveDeviceFromPush.



8
9
10
11
12
13
14
# File 'lib/pubnub/events/remove_device_from_push.rb', line 8

def initialize(options, app)
  @event = current_operation
  @telemetry_name = :l_push
  super
  # `environment` should
  @environment ||= 'development' if @push_gateway.eql? 'apns2'
end