Module: Ethon::Multi::Options::ClassMethods

Defined in:
lib/ethon/multi/options.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#available_optionsArray

Return the available options.

Examples:

Return the available options.

multi.available_options

Returns:

  • (Array)

    The available options.



26
27
28
# File 'lib/ethon/multi/options.rb', line 26

def available_options
  Ethon::Multi::AVAILABLE_OPTIONS
end

#bool_optionsArray

Return the options which need to set as 0 or 1 for multi.

Examples:

Return the bool options.

multi.bool_options

Returns:

  • (Array)

    The bool options.



36
37
38
39
40
# File 'lib/ethon/multi/options.rb', line 36

def bool_options
  [
    :pipelining
  ]
end

#int_optionsArray

Return the options which need to set as an integer for multi.

Examples:

Return the int options.

multi.int_options

Returns:

  • (Array)

    The int options.



48
49
50
51
52
# File 'lib/ethon/multi/options.rb', line 48

def int_options
  [
    :maxconnects
  ]
end