Class: OMQ::CLI::Config
- Inherits:
-
Data
- Object
- Data
- OMQ::CLI::Config
- Defined in:
- lib/omq/cli/config.rb
Overview
Frozen, Ractor-shareable configuration data class for a CLI invocation.
Instance Attribute Summary collapse
-
#binds ⇒ Object
readonly
Returns the value of attribute binds.
-
#compress ⇒ Object
readonly
Returns the value of attribute compress.
-
#compress_level ⇒ Object
readonly
Returns the value of attribute compress_level.
-
#conflate ⇒ Object
readonly
Returns the value of attribute conflate.
-
#connects ⇒ Object
readonly
Returns the value of attribute connects.
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#crypto ⇒ Object
readonly
Returns the value of attribute crypto.
-
#curve_server ⇒ Object
readonly
Returns the value of attribute curve_server.
-
#curve_server_key ⇒ Object
readonly
Returns the value of attribute curve_server_key.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
-
#echo ⇒ Object
readonly
Returns the value of attribute echo.
-
#endpoints ⇒ Object
readonly
Returns the value of attribute endpoints.
-
#ffi ⇒ Object
readonly
Returns the value of attribute ffi.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#heartbeat_ivl ⇒ Object
readonly
Returns the value of attribute heartbeat_ivl.
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#in_endpoints ⇒ Object
readonly
Returns the value of attribute in_endpoints.
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
-
#joins ⇒ Object
readonly
Returns the value of attribute joins.
-
#linger ⇒ Object
readonly
Returns the value of attribute linger.
-
#out_endpoints ⇒ Object
readonly
Returns the value of attribute out_endpoints.
-
#parallel ⇒ Object
readonly
Returns the value of attribute parallel.
-
#quiet ⇒ Object
readonly
Returns the value of attribute quiet.
-
#rcvbuf ⇒ Object
readonly
Returns the value of attribute rcvbuf.
-
#reconnect_ivl ⇒ Object
readonly
Returns the value of attribute reconnect_ivl.
-
#recv_expr ⇒ Object
readonly
Returns the value of attribute recv_expr.
-
#recv_hwm ⇒ Object
readonly
Returns the value of attribute recv_hwm.
-
#recv_maxsz ⇒ Object
readonly
Returns the value of attribute recv_maxsz.
-
#scripts ⇒ Object
readonly
Returns the value of attribute scripts.
-
#send_expr ⇒ Object
readonly
Returns the value of attribute send_expr.
-
#send_hwm ⇒ Object
readonly
Returns the value of attribute send_hwm.
-
#sndbuf ⇒ Object
readonly
Returns the value of attribute sndbuf.
-
#stdin_is_tty ⇒ Object
readonly
Returns the value of attribute stdin_is_tty.
-
#subscribes ⇒ Object
readonly
Returns the value of attribute subscribes.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#timestamps ⇒ Object
readonly
Returns the value of attribute timestamps.
-
#transient ⇒ Object
readonly
Returns the value of attribute transient.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
-
#verbose ⇒ Object
readonly
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#recv_only? ⇒ Boolean
True if this socket type only receives.
-
#send_only? ⇒ Boolean
True if this socket type only sends.
Instance Attribute Details
#binds ⇒ Object (readonly)
Returns the value of attribute binds
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def binds @binds end |
#compress ⇒ Object (readonly)
Returns the value of attribute compress
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def compress @compress end |
#compress_level ⇒ Object (readonly)
Returns the value of attribute compress_level
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def compress_level @compress_level end |
#conflate ⇒ Object (readonly)
Returns the value of attribute conflate
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def conflate @conflate end |
#connects ⇒ Object (readonly)
Returns the value of attribute connects
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def connects @connects end |
#count ⇒ Object (readonly)
Returns the value of attribute count
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def count @count end |
#crypto ⇒ Object (readonly)
Returns the value of attribute crypto
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def crypto @crypto end |
#curve_server ⇒ Object (readonly)
Returns the value of attribute curve_server
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def curve_server @curve_server end |
#curve_server_key ⇒ Object (readonly)
Returns the value of attribute curve_server_key
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def curve_server_key @curve_server_key end |
#data ⇒ Object (readonly)
Returns the value of attribute data
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def data @data end |
#delay ⇒ Object (readonly)
Returns the value of attribute delay
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def delay @delay end |
#echo ⇒ Object (readonly)
Returns the value of attribute echo
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def echo @echo end |
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def endpoints @endpoints end |
#ffi ⇒ Object (readonly)
Returns the value of attribute ffi
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def ffi @ffi end |
#file ⇒ Object (readonly)
Returns the value of attribute file
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def file @file end |
#format ⇒ Object (readonly)
Returns the value of attribute format
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def format @format end |
#group ⇒ Object (readonly)
Returns the value of attribute group
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def group @group end |
#heartbeat_ivl ⇒ Object (readonly)
Returns the value of attribute heartbeat_ivl
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def heartbeat_ivl @heartbeat_ivl end |
#identity ⇒ Object (readonly)
Returns the value of attribute identity
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def identity @identity end |
#in_endpoints ⇒ Object (readonly)
Returns the value of attribute in_endpoints
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def in_endpoints @in_endpoints end |
#interval ⇒ Object (readonly)
Returns the value of attribute interval
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def interval @interval end |
#joins ⇒ Object (readonly)
Returns the value of attribute joins
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def joins @joins end |
#linger ⇒ Object (readonly)
Returns the value of attribute linger
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def linger @linger end |
#out_endpoints ⇒ Object (readonly)
Returns the value of attribute out_endpoints
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def out_endpoints @out_endpoints end |
#parallel ⇒ Object (readonly)
Returns the value of attribute parallel
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def parallel @parallel end |
#quiet ⇒ Object (readonly)
Returns the value of attribute quiet
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def quiet @quiet end |
#rcvbuf ⇒ Object (readonly)
Returns the value of attribute rcvbuf
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def rcvbuf @rcvbuf end |
#reconnect_ivl ⇒ Object (readonly)
Returns the value of attribute reconnect_ivl
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def reconnect_ivl @reconnect_ivl end |
#recv_expr ⇒ Object (readonly)
Returns the value of attribute recv_expr
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def recv_expr @recv_expr end |
#recv_hwm ⇒ Object (readonly)
Returns the value of attribute recv_hwm
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def recv_hwm @recv_hwm end |
#recv_maxsz ⇒ Object (readonly)
Returns the value of attribute recv_maxsz
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def recv_maxsz @recv_maxsz end |
#scripts ⇒ Object (readonly)
Returns the value of attribute scripts
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def scripts @scripts end |
#send_expr ⇒ Object (readonly)
Returns the value of attribute send_expr
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def send_expr @send_expr end |
#send_hwm ⇒ Object (readonly)
Returns the value of attribute send_hwm
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def send_hwm @send_hwm end |
#sndbuf ⇒ Object (readonly)
Returns the value of attribute sndbuf
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def sndbuf @sndbuf end |
#stdin_is_tty ⇒ Object (readonly)
Returns the value of attribute stdin_is_tty
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def stdin_is_tty @stdin_is_tty end |
#subscribes ⇒ Object (readonly)
Returns the value of attribute subscribes
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def subscribes @subscribes end |
#target ⇒ Object (readonly)
Returns the value of attribute target
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def target @target end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def timeout @timeout end |
#timestamps ⇒ Object (readonly)
Returns the value of attribute timestamps
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def @timestamps end |
#transient ⇒ Object (readonly)
Returns the value of attribute transient
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def transient @transient end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name
19 20 21 |
# File 'lib/omq/cli/config.rb', line 19 def type_name @type_name end |
#verbose ⇒ Object (readonly)
Returns the value of attribute 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.
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.
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 |