Class: WCC::Contentful::Model::Menu

Inherits:
WCC::Contentful::Model show all
Defined in:
lib/generators/wcc/templates/menu/menu.rb,
lib/wcc/contentful/model/menu.rb

Overview

This file reopens the “Menu” class which was dynamically created by the WCC::Contentful gem. This class does not need to do anything, the attributes have already been defined based on the ‘content_type` returned from the Contentful API. However you can reopen the class to add functionality.

Method Summary

Methods inherited from WCC::Contentful::Model

all_models, find

Methods included from Helpers

#constant_from_content_type, #content_type_from_raw, #shared_prefix

Methods included from WCC::Contentful::ModelValidators

#schema, transform_content_types_for_validation, #validate_field, #validate_fields