Module: GoogleMapsService

Defined in:
lib/google_maps_service.rb,
lib/google_maps_service/url.rb,
lib/google_maps_service/apis.rb,
lib/google_maps_service/client.rb,
lib/google_maps_service/errors.rb,
lib/google_maps_service/convert.rb,
lib/google_maps_service/version.rb,
lib/google_maps_service/polyline.rb,
lib/google_maps_service/validator.rb

Overview

Google Maps Web Service API.

Defined Under Namespace

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

Constant Summary collapse

VERSION =

GoogleMapsService gem version

'0.4.2'

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_service.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_service.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_service.rb', line 43

def connection
  @connection
end

.keyString

Global key.

Returns:

  • (String)

See Also:



8
9
10
# File 'lib/google_maps_service.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_service.rb', line 28

def queries_per_second
  @queries_per_second
end

.request_optionsHurley::RequestOptions

Global request_options.

Returns:

  • (Hurley::RequestOptions)

See Also:

  • Client#initialize-instance_method


33
34
35
# File 'lib/google_maps_service.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_service.rb', line 23

def retry_timeout
  @retry_timeout
end

.ssl_optionsHurley::SslOptions

Global ssl_options.

Returns:

  • (Hurley::SslOptions)

See Also:

  • Client#initialize-instance_method


38
39
40
# File 'lib/google_maps_service.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_service.rb', line 47

def configure
  yield self
  true
end