Class: DefraRubyMocks::OsPlacesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- DefraRubyMocks::OsPlacesController
- Defined in:
- app/controllers/defra_ruby_mocks/os_places_controller.rb
Instance Method Summary collapse
Instance Method Details
#postcode ⇒ Object
5 6 7 8 |
# File 'app/controllers/defra_ruby_mocks/os_places_controller.rb', line 5 def postcode results = OsPlacesService.run(params[:postcode]).results render json: { "results" => results } end |