Class: WCC::Contentful::Event::Entry
- Inherits:
-
Object
- Object
- WCC::Contentful::Event::Entry
- Includes:
- WCC::Contentful::Event
- Defined in:
- lib/wcc/contentful/event.rb
Instance Method Summary collapse
Methods included from WCC::Contentful::Event
Instance Method Details
#content_type ⇒ Object
75 76 77 |
# File 'lib/wcc/contentful/event.rb', line 75 def content_type raw.dig('sys', 'contentType', 'sys', 'id') end |
#entry ⇒ Object
79 80 81 |
# File 'lib/wcc/contentful/event.rb', line 79 def entry @entry ||= WCC::Contentful::Model.new_from_raw(raw, sys.context) end |