Class: Lieu::Client

Inherits:
Object
  • Object
show all
Includes:
Actions, Autocomplete, Details, Photos, QueryAutocomplete, Search, Connection, Request
Defined in:
lib/lieu/client.rb,
lib/lieu/client/photos.rb,
lib/lieu/client/search.rb,
lib/lieu/client/actions.rb,
lib/lieu/client/details.rb,
lib/lieu/client/autocomplete.rb,
lib/lieu/client/query_autocomplete.rb

Overview

Client for the Google Places API

Defined Under Namespace

Modules: Actions, Autocomplete, Details, Photos, QueryAutocomplete, Search

Instance Method Summary collapse

Methods included from Actions

#add, #add_event, #bump, #delete, #delete_event, #event_details

Methods included from Photos

#photo

Methods included from QueryAutocomplete

#query_autocomplete

Methods included from Autocomplete

#autocomplete

Methods included from Search

#nearby_search, #radar_search, #text_search

Methods included from Details

#details

Methods included from Request

#get, #post

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



18
19
20
21
22
23
24
# File 'lib/lieu/client.rb', line 18

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

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