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