Module: Ethon::Easies::Options::ClassMethods
- Defined in:
- lib/ethon/easies/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.
31 32 33 |
# File 'lib/ethon/easies/options.rb', line 31 def Ethon::Easy::AVAILABLE_OPTIONS end |
#bool_options ⇒ Array
Return the options which need to set as 0 or 1 for easy.
41 42 43 44 45 46 |
# File 'lib/ethon/easies/options.rb', line 41 def [ :followlocation, :nosignal, :ssl_verifypeer, :verbose, :httpget, :nobody, :upload ] end |
#enum_options ⇒ Hash
Return the options which are an enum for easy.
54 55 56 |
# File 'lib/ethon/easies/options.rb', line 54 def { :httpauth => Curl::Auth, :sslversion => Curl::SSLVersion } end |
#int_options ⇒ Array
Return the options which need to set as an integer for easy.
64 65 66 67 68 69 |
# File 'lib/ethon/easies/options.rb', line 64 def [ :connecttimeout, :dns_cache_timeout, :infilesize, :maxredirs, :postfieldsize, :proxyport, :ssl_verifyhost, :timeout ] end |