Module: Ethon::Easy::Options::ClassMethods
- Defined in:
- lib/ethon/easy/options.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#available_options ⇒ Array
Return the available options.
-
#bool_options ⇒ Array
Return the options which need to set as 0 or 1 for easy.
-
#enum_options ⇒ Hash
Return the options which are an enum for easy.
-
#int_options ⇒ Array
Return the options which need to set as an integer for easy.
Instance Method Details
#available_options ⇒ Array
Return the available options.
32 33 34 |
# File 'lib/ethon/easy/options.rb', line 32 def Ethon::Easy::AVAILABLE_OPTIONS end |
#bool_options ⇒ Array
Return the options which need to set as 0 or 1 for easy.
42 43 44 45 46 47 |
# File 'lib/ethon/easy/options.rb', line 42 def [ :followlocation, :forbid_reuse, :nosignal, :ssl_verifypeer, :verbose, :httpget, :nobody, :upload ] end |
#enum_options ⇒ Hash
Return the options which are an enum for easy.
55 56 57 |
# File 'lib/ethon/easy/options.rb', line 55 def { :httpauth => Curl::Auth, :sslversion => Curl::SSLVersion } end |
#int_options ⇒ Array
Return the options which need to set as an integer for easy.
65 66 67 68 69 70 |
# File 'lib/ethon/easy/options.rb', line 65 def [ :connecttimeout, :connecttimeout_ms, :dns_cache_timeout, :infilesize, :maxredirs, :postfieldsize, :proxyport, :ssl_verifyhost, :timeout, :timeout_ms ] end |