Class: Azimuth::Client

Inherits:
Object
  • Object
show all
Includes:
RouteMatrix, Connection, Request
Defined in:
lib/azimuth/client.rb,
lib/azimuth/client/route_matrix.rb

Overview

Client for the MapQuest Directions API

Defined Under Namespace

Modules: RouteMatrix

Instance Method Summary collapse

Methods included from RouteMatrix

#route_matrix

Methods included from Request

#post

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



13
14
15
16
17
18
19
# File 'lib/azimuth/client.rb', line 13

def initialize(options={})
  options = Azimuth.options.merge(options)

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