Class: Pubnub::History
- Inherits:
-
SingleEvent
- Object
- Event
- SingleEvent
- Pubnub::History
- Includes:
- Concurrent::Async, Validator::History
- Defined in:
- lib/pubnub/events/history.rb
Overview
Holds history 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
-
#initialize(options, app) ⇒ History
constructor
A new instance of History.
Methods included from Validator::History
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) ⇒ History
Returns a new instance of History.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pubnub/events/history.rb', line 8 def initialize(, app) @event = :history @telemetry_name = :l_hist # Override crypto module if custom cipher key has been used. random_iv = .key?(:random_iv) ? [:random_iv] : true [:crypto_module] = Crypto::CryptoModule.new_legacy([:cipher_key], random_iv) if [:cipher_key] super end |