Class: Google::Apis::ClientOptions

Inherits:
Struct
  • Object
show all
Defined in:
lib/google/apis/options.rb,
lib/google/apis/options.rb

Overview

General client options

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#application_nameString

Returns Name of the application, for identification in the User-Agent header.

Returns:

  • (String)

    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_versionString

Returns Version of the application, for identification in the User-Agent header.

Returns:

  • (String)

    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

#proxy_urlString

Returns URL of a proxy server.

Returns:

  • (String)

    URL of a proxy server



18
19
20
# File 'lib/google/apis/options.rb', line 18

def proxy_url
  @proxy_url
end

#use_net_httpObject

Returns the value of attribute use_net_http

Returns:

  • (Object)

    the current value of use_net_http



18
19
20
# File 'lib/google/apis/options.rb', line 18

def use_net_http
  @use_net_http
end

Class Method Details

.defaultGoogle::Apis::ClientOptions

Get the default options



42
43
44
# File 'lib/google/apis/options.rb', line 42

def self.default
  @options ||= ClientOptions.new
end