Module: GoogleMapsService

Defined in:
lib/google_maps_service.rb,
lib/google_maps_service/roads.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/elevation.rb,
lib/google_maps_service/geocoding.rb,
lib/google_maps_service/time_zone.rb,
lib/google_maps_service/validator.rb,
lib/google_maps_service/directions.rb,
lib/google_maps_service/distance_matrix.rb

Defined Under Namespace

Modules: Convert, Directions, DistanceMatrix, Elevation, Error, Geocoding, Roads, TimeZone, Validator Classes: Client

Constant Summary collapse

VERSION =
'0.3.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idObject

Returns the value of attribute client_id.



3
4
5
# File 'lib/google_maps_service.rb', line 3

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



3
4
5
# File 'lib/google_maps_service.rb', line 3

def client_secret
  @client_secret
end

.connect_timeoutObject

Returns the value of attribute connect_timeout.



3
4
5
# File 'lib/google_maps_service.rb', line 3

def connect_timeout
  @connect_timeout
end

.keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/google_maps_service.rb', line 3

def key
  @key
end

.queries_per_secondObject

Returns the value of attribute queries_per_second.



3
4
5
# File 'lib/google_maps_service.rb', line 3

def queries_per_second
  @queries_per_second
end

.read_timeoutObject

Returns the value of attribute read_timeout.



3
4
5
# File 'lib/google_maps_service.rb', line 3

def read_timeout
  @read_timeout
end

.retry_timeoutObject

Returns the value of attribute retry_timeout.



3
4
5
# File 'lib/google_maps_service.rb', line 3

def retry_timeout
  @retry_timeout
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



5
6
7
8
# File 'lib/google_maps_service.rb', line 5

def configure
  yield self
  true
end