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