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



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

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

#entryObject



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

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