Updated documentation on User-Agent.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@154 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
parent
d91ddd752f
commit
7d370c6d10
|
@ -43,10 +43,13 @@ module Google
|
||||||
# </ul>
|
# </ul>
|
||||||
# @option options [String] :host ("www.googleapis.com")
|
# @option options [String] :host ("www.googleapis.com")
|
||||||
# The API hostname used by the client. This rarely needs to be changed.
|
# The API hostname used by the client. This rarely needs to be changed.
|
||||||
# @option options [String] :user_agent ("google-api-ruby-client/{version}")
|
# @option options [String] :application_name
|
||||||
|
# The name and version of the application using the client. This should
|
||||||
|
# be given in the form `"{name}/{version}"`.
|
||||||
|
# @option options [String] :user_agent
|
||||||
|
# ("{app_name} google-api-ruby-client/{version} {os_name}/{os_version}")
|
||||||
# The user agent used by the client. Most developers will want to
|
# The user agent used by the client. Most developers will want to
|
||||||
# leave this value alone — the API key is the primary mechanism used to
|
# leave this value alone and use the `:application_name` option instead.
|
||||||
# identify an application.
|
|
||||||
def initialize(options={})
|
def initialize(options={})
|
||||||
# Normalize key to String to allow indifferent access.
|
# Normalize key to String to allow indifferent access.
|
||||||
options = options.inject({}) do |accu, (key, value)|
|
options = options.inject({}) do |accu, (key, value)|
|
||||||
|
|
Loading…
Reference in New Issue