Module: Gistance

Extended by:
Configuration
Defined in:
lib/gistance.rb,
lib/gistance/error.rb,
lib/gistance/client.rb,
lib/gistance/request.rb,
lib/gistance/version.rb,
lib/gistance/connection.rb,
lib/gistance/configuration.rb,
lib/gistance/response/raise_error.rb,
lib/gistance/client/distance_matrix.rb

Overview

Ruby wrapper for Google Distance Matrix API

Defined Under Namespace

Modules: Configuration, Connection, Request, Response Classes: Client, Error, InvalidRequest, MaxElementsExceeded, NotFound, OverQueryLimit, RequestDenied, UnknownError, ZeroResults

Constant Summary collapse

VERSION =

Current version

Returns:

  • (String)
'1.2.0'.freeze

Constants included from Configuration

Configuration::DEFAULT_API_ENDPOINT, Configuration::VALID_OPTIONS

Class Method Summary collapse

Methods included from Configuration

configure, initialize_default_options, options, reset!

Class Method Details

.new(options = {}) ⇒ Object

Delegates to Gistance::Client#new



10
11
12
# File 'lib/gistance.rb', line 10

def new(options={})
  Gistance::Client.new(options)
end