Class: PeriscopeController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/periscope/periscope_controller.rb

Instance Method Summary collapse

Instance Method Details

#loginObject



13
14
15
# File 'app/periscope/periscope_controller.rb', line 13

def 
  render :json => (get_info())
end

#lookObject



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