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
#_metadata, #default_locale, #raw, #sys
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, #marshal_dump, #marshal_load, #raw_with_links
Methods inherited from BaseResource
#==, #initialize, #inspect, #marshal_dump, #marshal_load, #reload
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)
95 96 97 98 99 |
# File 'lib/contentful/entry.rb', line 95 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
14 15 16 |
# File 'lib/contentful/entry.rb', line 14 def entry? true end |