Class: Gistance::Client
- Inherits:
-
Object
- Object
- Gistance::Client
- Includes:
- DistanceMatrix, Connection, Request
- Defined in:
- lib/gistance/client.rb,
lib/gistance/client/distance_matrix.rb
Overview
Client for the Google Distance Matrix API
Defined Under Namespace
Modules: DistanceMatrix
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from DistanceMatrix
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 18 19 |
# File 'lib/gistance/client.rb', line 13 def initialize(={}) = Gistance..merge() Configuration::VALID_OPTIONS.each do |key| send("#{key}=", [key]) end end |