Class: WCC::Contentful::Event::Asset

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



92
93
94
# File 'lib/wcc/contentful/event.rb', line 92

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

#content_typeObject



88
89
90
# File 'lib/wcc/contentful/event.rb', line 88

def content_type
  'Asset'
end