Module: OMQ::RFC::Zstd::OptionsExt

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

Overview

Prepended onto OMQ::Options to add a compression attribute. Mirrors the pattern used by omq-transport-tls for tls_context.

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.



37
38
39
# File 'lib/omq/rfc/zstd/options_ext.rb', line 37

def compression
  @compression
end

Instance Method Details

#initialize(**kwargs) ⇒ Object



16
17
18
19
# File 'lib/omq/rfc/zstd/options_ext.rb', line 16

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