class Contentful::Webhook::Listener::Controllers::Wait
Wait
Controller Sleeps a determined amount of `:timeout` seconds on perform
Attributes
webhook_timeout[R]
Public Class Methods
new(server, logger, wh_timeout, *options)
click to toggle source
Calls superclass method
Contentful::Webhook::Listener::Controllers::Base::new
# File lib/contentful/webhook/listener/controllers/wait.rb, line 13 def initialize(server, logger, wh_timeout, *options) super(server, logger, options) @webhook_timeout = wh_timeout end
Protected Instance Methods
perform(_request, _response)
click to toggle source
# File lib/contentful/webhook/listener/controllers/wait.rb, line 20 def perform(_request, _response) sleep(webhook_timeout) ensure _response end