Class: Naf::LogParsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/naf/log_parsers_controller.rb

Instance Method Summary collapse

Instance Method Details

#logsObject



4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/naf/log_parsers_controller.rb', line 4

def logs
  response = params['logical_type'].constantize.new(params).logs
  if response.present?
    success = true
  else
    success = false
  end

  render json: "convertToJsonCallback(" + { success: success }.merge(response).to_json + ")"
end