Class: NNQ::CLI::Config

Inherits:
Data
  • Object
show all
Defined in:
lib/nnq/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/nnq/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/nnq/cli/config.rb', line 19

def compress
  @compress
end

#compress_inObject (readonly)

Returns the value of attribute compress_in

Returns:

  • (Object)

    the current value of compress_in



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

def compress_in
  @compress_in
end

#compress_outObject (readonly)

Returns the value of attribute compress_out

Returns:

  • (Object)

    the current value of compress_out



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

def compress_out
  @compress_out
end

#connectsObject (readonly)

Returns the value of attribute connects

Returns:

  • (Object)

    the current value of connects



19
20
21
# File 'lib/nnq/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/nnq/cli/config.rb', line 19

def count
  @count
end

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



19
20
21
# File 'lib/nnq/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/nnq/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/nnq/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/nnq/cli/config.rb', line 19

def endpoints
  @endpoints
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



19
20
21
# File 'lib/nnq/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/nnq/cli/config.rb', line 19

def format
  @format
end

#in_endpointsObject (readonly)

Returns the value of attribute in_endpoints

Returns:

  • (Object)

    the current value of in_endpoints



19
20
21
# File 'lib/nnq/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/nnq/cli/config.rb', line 19

def interval
  @interval
end

#lingerObject (readonly)

Returns the value of attribute linger

Returns:

  • (Object)

    the current value of linger



19
20
21
# File 'lib/nnq/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/nnq/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/nnq/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/nnq/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/nnq/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/nnq/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/nnq/cli/config.rb', line 19

def recv_expr
  @recv_expr
end

#recv_maxszObject (readonly)

Returns the value of attribute recv_maxsz

Returns:

  • (Object)

    the current value of recv_maxsz



19
20
21
# File 'lib/nnq/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/nnq/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/nnq/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/nnq/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/nnq/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/nnq/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/nnq/cli/config.rb', line 19

def subscribes
  @subscribes
end

#timeoutObject (readonly)

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



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

def timeout
  @timeout
end

#transientObject (readonly)

Returns the value of attribute transient

Returns:

  • (Object)

    the current value of transient



19
20
21
# File 'lib/nnq/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/nnq/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/nnq/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



56
# File 'lib/nnq/cli/config.rb', line 56

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



54
55
# File 'lib/nnq/cli/config.rb', line 54

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