Class: WCC::Contentful::Event::DeletedAsset
- Inherits:
-
Object
- Object
- WCC::Contentful::Event::DeletedAsset
- Includes:
- WCC::Contentful::Event
- Defined in:
- lib/wcc/contentful/event.rb
Instance Method Summary collapse
- #asset ⇒ Object (also: #entry)
- #content_type ⇒ Object
- #deleted_at ⇒ Object
Methods included from WCC::Contentful::Event
Instance Method Details
#asset ⇒ Object 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_type ⇒ Object
122 123 124 |
# File 'lib/wcc/contentful/event.rb', line 122 def content_type 'Asset' end |
#deleted_at ⇒ Object
118 119 120 |
# File 'lib/wcc/contentful/event.rb', line 118 def deleted_at raw.dig('sys', 'deletedAt') end |