Class: WCC::Contentful::Event::Entry

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



76
77
78
# File 'lib/wcc/contentful/event.rb', line 76

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

#entryObject



80
81
82
# File 'lib/wcc/contentful/event.rb', line 80

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