Module: Lieu

Extended by:
Configuration
Defined in:
lib/lieu.rb,
lib/lieu/error.rb,
lib/lieu/client.rb,
lib/lieu/request.rb,
lib/lieu/version.rb,
lib/lieu/connection.rb,
lib/lieu/client/photos.rb,
lib/lieu/client/search.rb,
lib/lieu/configuration.rb,
lib/lieu/client/actions.rb,
lib/lieu/client/details.rb,
lib/lieu/client/autocomplete.rb,
lib/lieu/response/raise_error.rb,
lib/lieu/client/query_autocomplete.rb

Overview

Ruby wrapper for Google Places

Defined Under Namespace

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

Constant Summary collapse

VERSION =

Current version

Returns:

  • (String)
'1.0.0'.freeze

Constants included from Configuration

Configuration::DEFAULT_API_ENDPOINT, Configuration::VALID_OPTIONS

Class Method Summary collapse

Methods included from Configuration

configure, extended, initialize_default_options, options, reset!

Class Method Details

.method_missing(method, *args, &block) ⇒ Object



15
16
17
18
# File 'lib/lieu.rb', line 15

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ Object

Delegates to Lieu::Client#new



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

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

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/lieu.rb', line 21

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end