Method: DuoSecurity::API#ping

Defined in:
lib/duo_security/api.rb

#pingObject



21
22
23
24
# File 'lib/duo_security/api.rb', line 21

def ping
  response = self.class.get("/ping")
  response.parsed_response.fetch("response") == "pong"
end