Class: Gistance::Client

Inherits:
Object
  • Object
show all
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

Methods included from DistanceMatrix

#distance_matrix

Methods included from Request

#get

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(options={})
  options = Gistance.options.merge(options)

  Configuration::VALID_OPTIONS.each do |key|
    send("#{key}=", options[key])
  end
end