Class: Contentful::Entry
- Inherits:
-
FieldsResource
- Object
- BaseResource
- FieldsResource
- Contentful::Entry
- Includes:
- ResourceReferences
- Defined in:
- lib/contentful/entry.rb
Overview
Resource class for Entry.
Instance Attribute Summary
Attributes inherited from FieldsResource
Attributes inherited from BaseResource
Instance Method Summary collapse
-
#entry? ⇒ Boolean
Returns true for resources that are entries.
Methods included from ResourceReferences
Methods inherited from FieldsResource
#fields, #fields_with_locales, #initialize, #locales
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Contentful::FieldsResource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (private)
94 95 96 97 98 |
# File 'lib/contentful/entry.rb', line 94 def method_missing(name, *args, &block) return empty_field_error(name) if content_type_field?(name) super end |
Instance Method Details
#entry? ⇒ Boolean
Returns true for resources that are entries
13 14 15 |
# File 'lib/contentful/entry.rb', line 13 def entry? true end |