Class: FeefoController
- Inherits:
-
SiteController
- Object
- SiteController
- FeefoController
- Defined in:
- app/controllers/feefo_controller.rb
Instance Method Summary collapse
Instance Method Details
#fetch_reviews ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/feefo_controller.rb', line 5 def fetch_reviews code = params[:product_code] reviews = FeefoReviewFetcher.new(code).fetch_reviews render json: reviews, status: 200 end |