Module: Yelp::Fusion

Defined in:
lib/yelp/fusion.rb,
lib/yelp/fusion/error.rb,
lib/yelp/fusion/client.rb,
lib/yelp/fusion/version.rb,
lib/yelp/fusion/singleton.rb,
lib/yelp/fusion/configuration.rb,
lib/yelp/fusion/endpoint/match.rb,
lib/yelp/fusion/endpoint/phone.rb,
lib/yelp/fusion/responses/base.rb,
lib/yelp/fusion/endpoint/review.rb,
lib/yelp/fusion/endpoint/search.rb,
lib/yelp/fusion/responses/match.rb,
lib/yelp/fusion/responses/phone.rb,
lib/yelp/fusion/responses/review.rb,
lib/yelp/fusion/responses/search.rb,
lib/yelp/fusion/endpoint/business.rb,
lib/yelp/fusion/responses/business.rb,
lib/yelp/fusion/endpoint/transaction.rb,
lib/yelp/fusion/responses/models/user.rb,
lib/yelp/fusion/responses/transaction.rb,
lib/yelp/fusion/responses/models/hours.rb,
lib/yelp/fusion/responses/models/center.rb,
lib/yelp/fusion/responses/models/region.rb,
lib/yelp/fusion/responses/models/reviews.rb,
lib/yelp/fusion/responses/models/business.rb,
lib/yelp/fusion/responses/models/location.rb,
lib/yelp/fusion/responses/models/categories.rb,
lib/yelp/fusion/responses/models/open_hours.rb

Overview

Entry module for application

Defined Under Namespace

Modules: Endpoint, Error, Responses, Singleton Classes: Client, Configuration

Constant Summary collapse

VERSION =
'1.0.1'.freeze

Class Method Summary collapse

Class Method Details

.clientClient

Returns an initially-unconfigured instance of the client.

Examples:

Configuring and using the client

Yelp::Fusion.client.configure do |config|
  config.api_key = 'abc'
end

Returns:

  • (Client)

    an instance of the client



35
36
37
# File 'lib/yelp/fusion.rb', line 35

def self.client
  @client ||= Yelp::Fusion::Client.new
end