Class: Icinga::JSONResponder

Inherits:
Responder show all
Defined in:
lib/icinga/responder/json.rb

Instance Method Summary collapse

Methods inherited from Responder

create, #each, #initialize, #response, #to_s

Constructor Details

This class inherits a constructor from Icinga::Responder

Instance Method Details

#dataObject



5
6
7
# File 'lib/icinga/responder/json.rb', line 5

def data
  JSON.parse(response.body)["status"].first.last
end