Class: Contentful::Webhook::Listener::FieldWebhook

Inherits:
BaseWebhook
  • Object
show all
Defined in:
lib/contentful/webhook/listener/webhooks.rb

Instance Attribute Summary collapse

Attributes inherited from BaseWebhook

#event, #id, #kind, #name, #origin, #raw_body, #raw_headers, #raw_topic, #space_id, #sys

Instance Method Summary collapse

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

#fieldsObject (readonly)

Returns the value of attribute fields.



64
65
66
# File 'lib/contentful/webhook/listener/webhooks.rb', line 64

def fields
  @fields
end