Class: WCC::Contentful::Event::DeletedEntry

Inherits:
Object
  • Object
show all
Includes:
WCC::Contentful::Event
Defined in:
lib/wcc/contentful/event.rb

Instance Method Summary collapse

Methods included from WCC::Contentful::Event

from_raw

Instance Method Details

#content_typeObject



106
107
108
# File 'lib/wcc/contentful/event.rb', line 106

def content_type
  raw.dig('sys', 'contentType', 'sys', 'id')
end

#deleted_atObject



102
103
104
# File 'lib/wcc/contentful/event.rb', line 102

def deleted_at
  raw.dig('sys', 'deletedAt')
end

#entryObject



110
111
112
# File 'lib/wcc/contentful/event.rb', line 110

def entry
  @entry ||= WCC::Contentful::Model.new_from_raw(raw, sys.context)
end