Sha256: 2531772f960ec2539fd8d32d1afeddd3fa24a9fb6b4adc34b146479c0040c554
Contents?: true
Size: 277 Bytes
Versions: 3
Compression:
Stored size: 277 Bytes
Contents
module Aggro module Message # Public: Heartbeat message. class Heartbeat < Struct.new(:sender) TYPE_CODE = '02'.freeze def self.parse(string) new string[2..37] end def to_s "#{TYPE_CODE}#{sender}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.4 | lib/aggro/message/heartbeat.rb |
aggro-0.0.3 | lib/aggro/message/heartbeat.rb |
aggro-0.0.2 | lib/aggro/message/heartbeat.rb |