Module: GoogleMapsApis

Defined in:
lib/google_maps_apis.rb,
lib/google_maps_apis/url.rb,
lib/google_maps_apis/client.rb,
lib/google_maps_apis/errors.rb,
lib/google_maps_apis/convert.rb,
lib/google_maps_apis/version.rb,
lib/google_maps_apis/polyline.rb,
lib/google_maps_apis/services.rb,
lib/google_maps_apis/validator.rb

Overview

Google Maps Web Service API.

Defined Under Namespace

Modules: Convert, Error, Polyline, Services, Url, Validator Classes: Client

Constant Summary collapse

VERSION =

GoogleMapsApis gem version

'1.0.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idString

Global client_id.

Returns:

  • (String)

See Also:



13
14
15
# File 'lib/google_maps_apis.rb', line 13

def client_id
  @client_id
end

.client_secretString

Global client_secret.

Returns:

  • (String)

See Also:



18
19
20
# File 'lib/google_maps_apis.rb', line 18

def client_secret
  @client_secret
end

.connectionObject

Global connection.

Returns:

  • (Object)

See Also:

  • Client#initialize-instance_method


43
44
45
# File 'lib/google_maps_apis.rb', line 43

def connection
  @connection
end

.keyString

Global key.

Returns:

  • (String)

See Also:



8
9
10
# File 'lib/google_maps_apis.rb', line 8

def key
  @key
end

.queries_per_secondInteger

Global queries_per_second.

Returns:

  • (Integer)

See Also:



28
29
30
# File 'lib/google_maps_apis.rb', line 28

def queries_per_second
  @queries_per_second
end

.request_optionsFaraday::RequestOptions

Global request_options.

Returns:

  • (Faraday::RequestOptions)

See Also:

  • Client#initialize-instance_method


33
34
35
# File 'lib/google_maps_apis.rb', line 33

def request_options
  @request_options
end

.retry_timeoutInteger

Global retry_timeout.

Returns:

  • (Integer)

See Also:



23
24
25
# File 'lib/google_maps_apis.rb', line 23

def retry_timeout
  @retry_timeout
end

.ssl_optionsFaraday::SslOptions

Global ssl_options.

Returns:

  • (Faraday::SslOptions)

See Also:

  • Client#initialize-instance_method


38
39
40
# File 'lib/google_maps_apis.rb', line 38

def ssl_options
  @ssl_options
end

Class Method Details

.configure {|config| ... } ⇒ Object

Configure global parameters.

Yields:

  • (config)


47
48
49
50
# File 'lib/google_maps_apis.rb', line 47

def configure
  yield self
  true
end