Class: Pubnub::Heartbeat
- Inherits:
-
SingleEvent
- Object
- Event
- SingleEvent
- Pubnub::Heartbeat
- Includes:
- Celluloid, Formatter, Validator::Heartbeat
- Defined in:
- lib/pubnub/events/heartbeat.rb
Overview
Holds heartbeat 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) ⇒ Heartbeat
constructor
A new instance of Heartbeat.
Methods included from Formatter
channels_for_url, classify_method, encode, format_channel, format_group, format_message, format_presence_channel, make_channel_array, params_hash_to_url_params, parse_json
Methods included from Validator::Heartbeat
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) ⇒ Heartbeat
Returns a new instance of Heartbeat.
9 10 11 12 |
# File 'lib/pubnub/events/heartbeat.rb', line 9 def initialize(, app) @event = :heartbeat super end |