yelp 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/lib/yelp/endpoint/business.rb +1 -1
- data/lib/yelp/endpoint/phone_search.rb +1 -1
- data/lib/yelp/endpoint/search.rb +3 -3
- data/lib/yelp/responses/models/business.rb +2 -1
- data/lib/yelp/responses/models/review.rb +2 -2
- data/lib/yelp/version.rb +1 -1
- metadata +2 -3
- data/lib/yelp/responses/models/rating.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeae5cf95fec256f6f6fe64abb73bdd9481cd48d
|
4
|
+
data.tar.gz: 417d8b3fb73181fc217ad943c29e2c4d6b2eb9a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f59d1978eceacc2f7fe8d2d15b8ec817de6c009ec4b3c84e36d9372d1b91b52127f1e352759266086cf36ed08e26b4a6ca7d3f4322532ea996619efeaac9d04
|
7
|
+
data.tar.gz: bbb74ac9bffe59a18f247cb0d2c548f8dcb14c1b7a613c6ce7905a5794e34d7ccbb19cae930f7e26939b869cc62f8456e062afb9e5e84d2377e871323b58f28b
|
data/.travis.yml
CHANGED
@@ -14,7 +14,7 @@ module Yelp
|
|
14
14
|
# Make a request to the business endpoint on the API
|
15
15
|
#
|
16
16
|
# @param id [String] the business id
|
17
|
-
# @return [
|
17
|
+
# @return [Response::Business] the parsed response object from the API
|
18
18
|
#
|
19
19
|
# @example Get business
|
20
20
|
# business = client.business('yelp-san-francisco')
|
@@ -14,7 +14,7 @@ module Yelp
|
|
14
14
|
# Make a request to the business endpoint on the API
|
15
15
|
#
|
16
16
|
# @param phone_number [String] the phone number
|
17
|
-
# @return [
|
17
|
+
# @return [Response::PhoneSearch] a parsed object of the response. For a complete
|
18
18
|
# sample response visit:
|
19
19
|
# http://www.yelp.com/developers/documentation/v2/phone_search#sampleResponse
|
20
20
|
#
|
data/lib/yelp/endpoint/search.rb
CHANGED
@@ -23,7 +23,7 @@ module Yelp
|
|
23
23
|
# http://www.yelp.com/developers/documentation/v2/search_api#searchGP
|
24
24
|
# @param locale [Hash] a hash that corresponds to locale on the API:
|
25
25
|
# http://www.yelp.com/developers/documentation/v2/search_api#lParam
|
26
|
-
# @return [
|
26
|
+
# @return [Response::Search] a parsed object of the response. For a complete
|
27
27
|
# list of possible response values visit:
|
28
28
|
# http://www.yelp.com/developers/documentation/v2/search_api#rValue
|
29
29
|
#
|
@@ -59,7 +59,7 @@ module Yelp
|
|
59
59
|
# http://www.yelp.com/developers/documentation/v2/search_api#searchGP
|
60
60
|
# @param locale [Hash] a hash that corresponds to locale on the API:
|
61
61
|
# http://www.yelp.com/developers/documentation/v2/search_api#lParam
|
62
|
-
# @return [
|
62
|
+
# @return [Response::Search] a parsed object of the response. For a complete
|
63
63
|
# list of possible response values visit:
|
64
64
|
# http://www.yelp.com/developers/documentation/v2/search_api#rValue
|
65
65
|
#
|
@@ -105,7 +105,7 @@ module Yelp
|
|
105
105
|
# http://www.yelp.com/developers/documentation/v2/search_api#searchGP
|
106
106
|
# @param locale [Hash] a hash that corresponds to locale on the API:
|
107
107
|
# http://www.yelp.com/developers/documentation/v2/search_api#lParam
|
108
|
-
# @return [
|
108
|
+
# @return [Response::Search] a parsed object of the response. For a complete
|
109
109
|
# list of possible response values visit:
|
110
110
|
# http://www.yelp.com/developers/documentation/v2/search_api#rValue
|
111
111
|
#
|
@@ -10,7 +10,8 @@ module Yelp
|
|
10
10
|
class Business < Response::Base
|
11
11
|
attr_reader :categories, :deals, :display_phone, :distance, :eat24_url, :gift_certificates, :id, :image_url,
|
12
12
|
:is_claimed, :is_closed, :location, :menu_provider, :menu_date_updated, :mobile_url, :name, :phone,
|
13
|
-
:rating, :
|
13
|
+
:rating, :rating_img_url, :rating_img_url_small, :rating_img_url_large, :reviews, :reservation_url,
|
14
|
+
:review_count, :snippet_image_url, :snippet_text, :url
|
14
15
|
|
15
16
|
def initialize(json)
|
16
17
|
super(json)
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'yelp/responses/base'
|
2
|
-
require 'yelp/responses/models/rating'
|
3
2
|
|
4
3
|
module Yelp
|
5
4
|
module Response
|
6
5
|
module Model
|
7
6
|
class Review < Base
|
8
|
-
attr_reader :excerpt, :id, :rating, :
|
7
|
+
attr_reader :excerpt, :id, :rating, :rating_image_url, :rating_image_small_url,
|
8
|
+
:rating_image_large_url, :time_created, :user
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
data/lib/yelp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yelp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomer Elmalem
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -235,7 +235,6 @@ files:
|
|
235
235
|
- lib/yelp/responses/models/gift_certificate.rb
|
236
236
|
- lib/yelp/responses/models/gift_certificate_option.rb
|
237
237
|
- lib/yelp/responses/models/location.rb
|
238
|
-
- lib/yelp/responses/models/rating.rb
|
239
238
|
- lib/yelp/responses/models/region.rb
|
240
239
|
- lib/yelp/responses/models/region_center.rb
|
241
240
|
- lib/yelp/responses/models/region_span.rb
|