Class: SearchController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SearchController
- Includes:
- ApplicationHelper
- Defined in:
- lib/nexmo_developer/app/controllers/search_controller.rb
Constant Summary
Constants included from ApplicationHelper
Instance Method Summary collapse
Methods included from ApplicationHelper
#active_sidenav_item, #canonical_base, #canonical_base_from_config, #canonical_path, #canonical_url, #dashboard_cookie, #search_enabled?, #set_utm_cookie, #theme
Methods inherited from ApplicationController
#authenticate_admin!, #not_found, #redirect_vonage_domain
Instance Method Details
#results ⇒ Object
7 8 9 10 |
# File 'lib/nexmo_developer/app/controllers/search_controller.rb', line 7 def results @results = JSON.parse(get_results.to_json, object_class: OpenStruct).results @results_total = @results.sum(&:nbHits) end |