Class: Pubnub::RemoveChannelMetadata
- Inherits:
-
SingleEvent
- Object
- Event
- SingleEvent
- Pubnub::RemoveChannelMetadata
- Includes:
- Concurrent::Async, Validator::RemoveChannelMetadata
- Defined in:
- lib/pubnub/events/remove_channel_metadata.rb
Overview
Holds RemoveChannelMetadata functionality
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
- #fire ⇒ Object
-
#initialize(options, app) ⇒ RemoveChannelMetadata
constructor
A new instance of RemoveChannelMetadata.
Methods included from Validator::RemoveChannelMetadata
Methods included from Validator::CommonValidator
#validate_origin, #validate_publish_key, #validate_subscribe_key, #validate_user_id
Methods inherited from Event
#finalized?, #send_request, #sync?, #uri
Methods included from Event::EFormatter
#format_channels, #format_envelopes, #format_group
Constructor Details
#initialize(options, app) ⇒ RemoveChannelMetadata
Returns a new instance of RemoveChannelMetadata.
10 11 12 13 14 15 |
# File 'lib/pubnub/events/remove_channel_metadata.rb', line 10 def initialize(, app) @event = :remove_channel_metadata @telemetry_name = :l_obj @channel = [:channel] super end |
Instance Method Details
#fire ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pubnub/events/remove_channel_metadata.rb', line 17 def fire Pubnub.logger.debug('Pubnub::RemoveChannelMetadata') { "Fired event #{self.class}" } body = Formatter.(@data, nil, false) response = send_request(body) envelopes = fire_callbacks(handle(response, uri)) finalize_event(envelopes) envelopes end |