Class: Contentful::Scheduler::Controller
- Inherits:
-
Webhook::Listener::Controllers::WebhookAware
- Object
- Webhook::Listener::Controllers::WebhookAware
- Contentful::Scheduler::Controller
- Defined in:
- lib/contentful/scheduler/controller.rb
Instance Method Summary collapse
- #create ⇒ Object (also: #save, #auto_save, #unarchive)
- #delete ⇒ Object (also: #unpublish, #archive, #publish)
Instance Method Details
#create ⇒ Object Also known as: save, auto_save, unarchive
7 8 9 10 11 12 13 |
# File 'lib/contentful/scheduler/controller.rb', line 7 def create return unless webhook.entry? logger.info "Queueing - Space: #{webhook.space_id} - Entry: #{webhook.id}" Queue.instance(logger).update_or_create(webhook) end |