Class: ReviewsCatcher::Reviews
Instance Attribute Summary
Attributes inherited from BaseService
#client
Instance Method Summary
collapse
Methods inherited from BaseService
#auth, #get, #get_api_rating, #get_api_reviews, #initialize, #url
Instance Method Details
#aggregate_rating ⇒ Object
10
11
12
13
14
|
# File 'lib/reviews_catcher/reviews.rb', line 10
def aggregate_rating
response = JSON.parse(get_api_reviews.body)
response['aggregate_rating']
end
|
#all ⇒ Object
22
23
24
25
26
|
# File 'lib/reviews_catcher/reviews.rb', line 22
def all
response = JSON.parse(get_api_reviews.body)
response['reviews']
end
|
#name ⇒ Object
4
5
6
7
8
|
# File 'lib/reviews_catcher/reviews.rb', line 4
def name
response = JSON.parse(get_api_reviews.body)
response['account_name']
end
|
#rating_count ⇒ Object
16
17
18
19
20
|
# File 'lib/reviews_catcher/reviews.rb', line 16
def rating_count
response = JSON.parse(get_api_reviews.body)
response['rating_count']
end
|