Class: Aggro::Message::Endpoint

Inherits:
Struct
  • Object
show all
Defined in:
lib/aggro/message/endpoint.rb

Overview

Public: Endpoint message.

Constant Summary collapse

TYPE_CODE =
'12'.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint

Returns:

  • (Object)

    the current value of 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_sObject



11
12
13
# File 'lib/aggro/message/endpoint.rb', line 11

def to_s
  "#{TYPE_CODE}#{endpoint}"
end