Class: Menu

Inherits:
WCC::Contentful::Model::Menu show all
Defined in:
lib/generators/wcc/templates/menu/models/menu.rb

Overview

This model represents the ‘menu’ content type in Contentful. Any linked entries of the ‘menu’ content type will be resolved as instances of this class. It exposes #find, #find_by, and #find_all methods to query Contentful.

Method Summary

Methods inherited from WCC::Contentful::Model

all_models, const_missing, find, register_for_content_type, registered?, registry

Methods included from WCC::Contentful::Helpers

#constant_from_content_type, #content_type_from_constant, #content_type_from_raw, #shared_prefix

Methods included from WCC::Contentful::ModelValidators

#schema, transform_content_types_for_validation, #validate_field, #validate_fields, #validations