Module: OMQ::Compression::Zstd::OptionsExt

Defined in:
lib/omq/compression/zstd/options_ext.rb

Overview

Prepended onto OMQ::Options to add a compression attribute.

Setting compression also publishes the profile string on the mechanism’s metadata so the ZMTP READY command advertises X-Compression to the peer during handshake.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#compressionObject

Returns the value of attribute compression.



18
19
20
# File 'lib/omq/compression/zstd/options_ext.rb', line 18

def compression
  @compression
end

Instance Method Details

#initialize(**kwargs) ⇒ Object



21
22
23
24
# File 'lib/omq/compression/zstd/options_ext.rb', line 21

def initialize(**kwargs)
  super
  @compression = nil
end