Class: CityGrid::Reviews

Inherits:
Abstraction::Collection show all
Defined in:
lib/citygrid/reviews.rb

Instance Method Summary collapse

Methods inherited from Abstraction::Collection

new, #update

Methods included from Abstraction::Requestable

included, #request_and_update

Methods inherited from Abstraction::SuperArray

new

Instance Method Details

#apiObject



3
4
5
# File 'lib/citygrid/reviews.rb', line 3

def api
  CityGrid::API::Content::Reviews
end

#request(opts = {}) ⇒ Object



7
8
9
# File 'lib/citygrid/reviews.rb', line 7

def request opts = {}
  api.request_with_publisher opts
end

#total_hitsObject



11
12
13
# File 'lib/citygrid/reviews.rb', line 11

def total_hits
  raw["results"]["total_hits"]
end