Method: Eol.ping

Defined in:
lib/eol.rb

.pingEol::Ping

Pings the EOL API

Examples:

Eol.ping ==> #<Eol::Ping:0x000000027ffcb8 @message="Success">

Returns:

See Also:



28
29
30
31
# File 'lib/eol.rb', line 28

def self.ping
  response = get('/ping/1.0.json')
  response.code == 200 ? Eol::Ping.new(response['response']['message']) : bad_response(response)
end