Class: Monitaur::MonitaurController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/app/controllers/monitaur/monitaur_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
# File 'lib/app/controllers/monitaur/monitaur_controller.rb', line 7

def index
  @monitaur = Monitaur::Monitor.new
 
  @output = @monitaur.render

  render :json => @output.to_hash, :layout => false
end