Sha256: 44dc8da23edc4dd42a007b4ba01087fbeb56bb3fc9639e81bc76699884d90b19
Contents?: true
Size: 298 Bytes
Versions: 3
Compression:
Stored size: 298 Bytes
Contents
module Aggro module Message # Public: Result message. class Result < Struct.new(:result) TYPE_CODE = '14'.freeze def self.parse(string) new Marshal.load(string[2..-1]) end def to_s "#{TYPE_CODE}#{Marshal.dump result}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.4 | lib/aggro/message/result.rb |
aggro-0.0.3 | lib/aggro/message/result.rb |
aggro-0.0.2 | lib/aggro/message/result.rb |