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, #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

#total_hitsObject



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

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