Class: Google::Apis::ClientOptions
- Inherits:
-
Struct
- Object
- Struct
- Google::Apis::ClientOptions
- Defined in:
- lib/google/apis/options.rb,
lib/google/apis/options.rb
Overview
General client options
Instance Attribute Summary collapse
-
#application_name ⇒ String
Name of the application, for identification in the User-Agent header.
-
#application_version ⇒ String
Version of the application, for identification in the User-Agent header.
-
#log_http_requests ⇒ Boolean
True if raw HTTP requests should be logged.
-
#open_timeout_sec ⇒ Fixnum
How long, in seconds, before failed connections time out.
-
#proxy_url ⇒ String
URL of a proxy server.
-
#read_timeout_sec ⇒ Fixnum
How long, in seconds, before requests time out.
-
#send_timeout_sec ⇒ Object
Returns the value of attribute send_timeout_sec.
-
#transparent_gzip_decompression ⇒ Boolean, Google::Apis::ClientOptions
Get the default options.
Class Method Summary collapse
-
.default ⇒ Boolean, Google::Apis::ClientOptions
Get the default options.
Instance Attribute Details
#application_name ⇒ String
Returns Name of the application, for identification in the User-Agent header
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def application_name @application_name end |
#application_version ⇒ String
Returns Version of the application, for identification in the User-Agent header
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def application_version @application_version end |
#log_http_requests ⇒ Boolean
Returns True if raw HTTP requests should be logged
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def log_http_requests @log_http_requests end |
#open_timeout_sec ⇒ Fixnum
Returns How long, in seconds, before failed connections time out
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def open_timeout_sec @open_timeout_sec end |
#proxy_url ⇒ String
Returns URL of a proxy server
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def proxy_url @proxy_url end |
#read_timeout_sec ⇒ Fixnum
Returns How long, in seconds, before requests time out
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def read_timeout_sec @read_timeout_sec end |
#send_timeout_sec ⇒ Object
Returns the value of attribute send_timeout_sec
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def send_timeout_sec @send_timeout_sec end |
#transparent_gzip_decompression ⇒ Boolean, Google::Apis::ClientOptions
Get the default options
18 19 20 |
# File 'lib/google/apis/options.rb', line 18 def transparent_gzip_decompression @transparent_gzip_decompression end |
Class Method Details
.default ⇒ Boolean, Google::Apis::ClientOptions
Get the default options
55 56 57 |
# File 'lib/google/apis/options.rb', line 55 def self.default @options ||= ClientOptions.new end |