Class: Aggro::Message::Heartbeat
- Inherits:
-
Struct
- Object
- Struct
- Aggro::Message::Heartbeat
- Defined in:
- lib/aggro/message/heartbeat.rb
Overview
Public: Heartbeat message.
Constant Summary collapse
- TYPE_CODE =
'02'.freeze
Instance Attribute Summary collapse
-
#sender ⇒ Object
Returns the value of attribute sender.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#sender ⇒ Object
Returns the value of attribute sender
4 5 6 |
# File 'lib/aggro/message/heartbeat.rb', line 4 def sender @sender end |
Class Method Details
.parse(string) ⇒ Object
7 8 9 |
# File 'lib/aggro/message/heartbeat.rb', line 7 def self.parse(string) new string[2..37] end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/aggro/message/heartbeat.rb', line 11 def to_s "#{TYPE_CODE}#{sender}" end |