Class: CityGrid::Reviews
- Inherits:
-
Abstraction::Collection
- Object
- Array
- Abstraction::SuperArray
- Abstraction::Collection
- CityGrid::Reviews
- Defined in:
- lib/citygrid/reviews.rb
Instance Method Summary collapse
Methods inherited from Abstraction::Collection
Methods included from Abstraction::Requestable
Methods inherited from Abstraction::SuperArray
Instance Method Details
#api ⇒ Object
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_hits ⇒ Object
11 12 13 |
# File 'lib/citygrid/reviews.rb', line 11 def total_hits raw["results"]["total_hits"] end |