Module: Shushu::HeartBeat

Extended by:
HeartBeat
Included in:
HeartBeat
Defined in:
lib/models/heart_beat.rb

Instance Method Summary collapse

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/models/heart_beat.rb', line 5

def alive?
  Shushu.handle_req {RestClient.get([Shushu.url, "/heartbeat"].join, Shushu.headers)}
end