Class: PeriscopeController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- PeriscopeController
- Defined in:
- app/periscope/periscope_controller.rb
Instance Method Summary collapse
Instance Method Details
#login ⇒ Object
13 14 15 |
# File 'app/periscope/periscope_controller.rb', line 13 def login render :json => (get_info()) end |
#look ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/periscope/periscope_controller.rb', line 5 def look if !params[:sql].nil? render :json => (run_sql(params[:sql])) else render :json => ({:error => "Command not understood"}) end end |