Class: Contentful::Webhook::Listener::FieldWebhook
- Inherits:
-
BaseWebhook
- Object
- BaseWebhook
- Contentful::Webhook::Listener::FieldWebhook
- Defined in:
- lib/contentful/webhook/listener/webhooks.rb
Direct Known Subclasses
ArchiveWebhook, AutoSaveWebhook, CreateWebhook, PublishWebhook, SaveWebhook, UnarchiveWebhook
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Attributes inherited from BaseWebhook
#event, #id, #kind, #name, #origin, #raw_body, #raw_headers, #raw_topic, #space_id, #sys
Instance Method Summary collapse
-
#initialize(headers, body) ⇒ FieldWebhook
constructor
A new instance of FieldWebhook.
Methods inherited from BaseWebhook
#asset?, #content_type?, #entry?
Constructor Details
#initialize(headers, body) ⇒ FieldWebhook
Returns a new instance of FieldWebhook.
66 67 68 69 |
# File 'lib/contentful/webhook/listener/webhooks.rb', line 66 def initialize(headers, body) super(headers, body) @fields = body['fields'] end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
64 65 66 |
# File 'lib/contentful/webhook/listener/webhooks.rb', line 64 def fields @fields end |