Class: OMQ::CLI::Config

Inherits:
Data
  • Object
show all
Defined in:
lib/omq/cli/config.rb

Overview

Frozen, Ractor-shareable configuration data class for a CLI invocation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bindsObject (readonly)

Returns the value of attribute binds

Returns:

  • (Object)

    the current value of binds



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def binds
  @binds
end

#compressObject (readonly)

Returns the value of attribute compress

Returns:

  • (Object)

    the current value of compress



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def compress
  @compress
end

#compress_levelObject (readonly)

Returns the value of attribute compress_level

Returns:

  • (Object)

    the current value of compress_level



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def compress_level
  @compress_level
end

#conflateObject (readonly)

Returns the value of attribute conflate

Returns:

  • (Object)

    the current value of conflate



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def conflate
  @conflate
end

#connectsObject (readonly)

Returns the value of attribute connects

Returns:

  • (Object)

    the current value of connects



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def connects
  @connects
end

#countObject (readonly)

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def count
  @count
end

#cryptoObject (readonly)

Returns the value of attribute crypto

Returns:

  • (Object)

    the current value of crypto



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def crypto
  @crypto
end

#curve_serverObject (readonly)

Returns the value of attribute curve_server

Returns:

  • (Object)

    the current value of curve_server



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def curve_server
  @curve_server
end

#curve_server_keyObject (readonly)

Returns the value of attribute curve_server_key

Returns:

  • (Object)

    the current value of curve_server_key



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def curve_server_key
  @curve_server_key
end

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def data
  @data
end

#delayObject (readonly)

Returns the value of attribute delay

Returns:

  • (Object)

    the current value of delay



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def delay
  @delay
end

#echoObject (readonly)

Returns the value of attribute echo

Returns:

  • (Object)

    the current value of echo



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def echo
  @echo
end

#endpointsObject (readonly)

Returns the value of attribute endpoints

Returns:

  • (Object)

    the current value of endpoints



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def endpoints
  @endpoints
end

#ffiObject (readonly)

Returns the value of attribute ffi

Returns:

  • (Object)

    the current value of ffi



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def ffi
  @ffi
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def file
  @file
end

#formatObject (readonly)

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def format
  @format
end

#groupObject (readonly)

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def group
  @group
end

#heartbeat_ivlObject (readonly)

Returns the value of attribute heartbeat_ivl

Returns:

  • (Object)

    the current value of heartbeat_ivl



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def heartbeat_ivl
  @heartbeat_ivl
end

#identityObject (readonly)

Returns the value of attribute identity

Returns:

  • (Object)

    the current value of identity



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def identity
  @identity
end

#in_endpointsObject (readonly)

Returns the value of attribute in_endpoints

Returns:

  • (Object)

    the current value of in_endpoints



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def in_endpoints
  @in_endpoints
end

#intervalObject (readonly)

Returns the value of attribute interval

Returns:

  • (Object)

    the current value of interval



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def interval
  @interval
end

#joinsObject (readonly)

Returns the value of attribute joins

Returns:

  • (Object)

    the current value of joins



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def joins
  @joins
end

#lingerObject (readonly)

Returns the value of attribute linger

Returns:

  • (Object)

    the current value of linger



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def linger
  @linger
end

#out_endpointsObject (readonly)

Returns the value of attribute out_endpoints

Returns:

  • (Object)

    the current value of out_endpoints



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def out_endpoints
  @out_endpoints
end

#parallelObject (readonly)

Returns the value of attribute parallel

Returns:

  • (Object)

    the current value of parallel



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def parallel
  @parallel
end

#quietObject (readonly)

Returns the value of attribute quiet

Returns:

  • (Object)

    the current value of quiet



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def quiet
  @quiet
end

#rcvbufObject (readonly)

Returns the value of attribute rcvbuf

Returns:

  • (Object)

    the current value of rcvbuf



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def rcvbuf
  @rcvbuf
end

#reconnect_ivlObject (readonly)

Returns the value of attribute reconnect_ivl

Returns:

  • (Object)

    the current value of reconnect_ivl



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def reconnect_ivl
  @reconnect_ivl
end

#recv_exprObject (readonly)

Returns the value of attribute recv_expr

Returns:

  • (Object)

    the current value of recv_expr



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def recv_expr
  @recv_expr
end

#recv_hwmObject (readonly)

Returns the value of attribute recv_hwm

Returns:

  • (Object)

    the current value of recv_hwm



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def recv_hwm
  @recv_hwm
end

#recv_maxszObject (readonly)

Returns the value of attribute recv_maxsz

Returns:

  • (Object)

    the current value of recv_maxsz



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def recv_maxsz
  @recv_maxsz
end

#scriptsObject (readonly)

Returns the value of attribute scripts

Returns:

  • (Object)

    the current value of scripts



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def scripts
  @scripts
end

#send_exprObject (readonly)

Returns the value of attribute send_expr

Returns:

  • (Object)

    the current value of send_expr



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def send_expr
  @send_expr
end

#send_hwmObject (readonly)

Returns the value of attribute send_hwm

Returns:

  • (Object)

    the current value of send_hwm



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def send_hwm
  @send_hwm
end

#sndbufObject (readonly)

Returns the value of attribute sndbuf

Returns:

  • (Object)

    the current value of sndbuf



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def sndbuf
  @sndbuf
end

#stdin_is_ttyObject (readonly)

Returns the value of attribute stdin_is_tty

Returns:

  • (Object)

    the current value of stdin_is_tty



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def stdin_is_tty
  @stdin_is_tty
end

#subscribesObject (readonly)

Returns the value of attribute subscribes

Returns:

  • (Object)

    the current value of subscribes



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def subscribes
  @subscribes
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def target
  @target
end

#timeoutObject (readonly)

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def timeout
  @timeout
end

#timestampsObject (readonly)

Returns the value of attribute timestamps

Returns:

  • (Object)

    the current value of timestamps



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def timestamps
  @timestamps
end

#transientObject (readonly)

Returns the value of attribute transient

Returns:

  • (Object)

    the current value of transient



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def transient
  @transient
end

#type_nameObject (readonly)

Returns the value of attribute type_name

Returns:

  • (Object)

    the current value of type_name



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def type_name
  @type_name
end

#verboseObject (readonly)

Returns the value of attribute verbose

Returns:

  • (Object)

    the current value of verbose



19
20
21
# File 'lib/omq/cli/config.rb', line 19

def verbose
  @verbose
end

Instance Method Details

#recv_only?Boolean

Returns true if this socket type only receives.

Returns:

  • (Boolean)

    true if this socket type only receives



67
# File 'lib/omq/cli/config.rb', line 67

def recv_only? = RECV_ONLY.include?(type_name)

#send_only?Boolean

Returns true if this socket type only sends.

Returns:

  • (Boolean)

    true if this socket type only sends



65
66
# File 'lib/omq/cli/config.rb', line 65

def send_only? = SEND_ONLY.include?(type_name)
# @return [Boolean] true if this socket type only receives