Class: Leafy::Rack::Ping
- Inherits:
-
Object
- Object
- Leafy::Rack::Ping
- Defined in:
- lib/leafy/rack/ping.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, path = '/ping') ⇒ Ping
constructor
A new instance of Ping.
Constructor Details
#initialize(app, path = '/ping') ⇒ Ping
Returns a new instance of Ping.
15 16 17 18 |
# File 'lib/leafy/rack/ping.rb', line 15 def initialize(app, path = '/ping') @app = app @path = path end |
Class Method Details
.response ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/leafy/rack/ping.rb', line 6 def self.response [ 200, { 'Content-Type' => 'text/plain', 'Cache-Control' => 'must-revalidate,no-cache,no-store' }, [ 'pong' ] ] end |