Class: LesliAudit::AnalyticsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/lesli_audit/analytics_controller.rb

Instance Method Summary collapse

Instance Method Details

#controllersObject



20
21
22
# File 'app/controllers/lesli_audit/analytics_controller.rb', line 20

def controllers 
    respond_with_successful(AnalyticService.new(current_user, query).controllers)
end

#devicesObject



16
17
18
# File 'app/controllers/lesli_audit/analytics_controller.rb', line 16

def devices 
    respond_with_successful(AnalyticService.new(current_user, query).devices)
end

#indexObject

GET /analytics



5
6
# File 'app/controllers/lesli_audit/analytics_controller.rb', line 5

def index
end

#usersObject



12
13
14
# File 'app/controllers/lesli_audit/analytics_controller.rb', line 12

def users 
    respond_with_successful(AnalyticService.new(current_user, query).users)
end

#visitorsObject



8
9
10
# File 'app/controllers/lesli_audit/analytics_controller.rb', line 8

def visitors
    respond_with_successful(AnalyticService.new(current_user, query).visitors)
end