Class: Contentful::Webhook::Listener::Controllers::Wait

Inherits:
Base
  • Object
show all
Defined in:
lib/contentful/webhook/listener/controllers/wait.rb

Overview

Wait Controller Sleeps a determined amount of ‘:timeout` seconds on #perform

Direct Known Subclasses

WebhookAware

Instance Attribute Summary collapse

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods inherited from Base

#respond

Constructor Details

#initialize(server, logger, wh_timeout, *options) ⇒ Wait

Returns a new instance of Wait.



13
14
15
16
# 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

Instance Attribute Details

#webhook_timeoutObject (readonly)

Returns the value of attribute webhook_timeout.



11
12
13
# File 'lib/contentful/webhook/listener/controllers/wait.rb', line 11

def webhook_timeout
  @webhook_timeout
end