Class: Moleculer::Packets::Heartbeat
- Defined in:
- lib/moleculer/packets/heartbeat.rb
Overview
Represents a DISCOVER packet
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(config, data = {}) ⇒ Heartbeat
constructor
A new instance of Heartbeat.
Methods inherited from Base
inherited, packet_accessors, packet_attr, packet_name, #sender, #to_h, #topic, #ver
Constructor Details
#initialize(config, data = {}) ⇒ Heartbeat
Returns a new instance of Heartbeat.
10 11 12 13 14 |
# File 'lib/moleculer/packets/heartbeat.rb', line 10 def initialize(config, data = {}) super(config, data) @cpu = 0 end |