Class: WCC::Contentful::Event::DeletedAsset

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

#assetObject Also known as: entry



126
127
128
# File 'lib/wcc/contentful/event.rb', line 126

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

#content_typeObject



122
123
124
# File 'lib/wcc/contentful/event.rb', line 122

def content_type
  'Asset'
end

#deleted_atObject



118
119
120
# File 'lib/wcc/contentful/event.rb', line 118

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