Module: Contentful::Social::Support

Defined in:
lib/contentful/social/support.rb

Class Method Summary collapse

Class Method Details

.find_entry(contentful_client, webhook, include_level = 3) ⇒ Object



4
5
6
7
8
# File 'lib/contentful/social/support.rb', line 4

def self.find_entry(contentful_client, webhook, include_level = 3)
  contentful_client.entries('sys.id' => webhook.id, include: include_level).find do |e|
    e.id == webhook.id
  end
end