Sha256: e32d18da090c7630e3d20ce82561f2379e0d7c60ef834526ce35c67812cbccb5

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 Bytes

Contents

module Aggro
  module Message
    # Public: Publisher endpoint inquiry message.
    class PublisherEndpointInquiry < Struct.new(:sender)
      TYPE_CODE = '11'.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/publisher_endpoint_inquiry.rb
aggro-0.0.3 lib/aggro/message/publisher_endpoint_inquiry.rb
aggro-0.0.2 lib/aggro/message/publisher_endpoint_inquiry.rb