Class: Sanity::Resource
- Inherits:
-
Object
- Object
- Sanity::Resource
- Includes:
- ActiveModel::Attributes, ActiveModel::Model, Mutatable, Publishable, Queryable, Serializable
- Defined in:
- lib/sanity/resource.rb
Overview
Sanity::Resource is the base class used by the sanity resources defined within this gem.
Out of the box it includes the following mixins:
Sanity::Mutatable
Sanity::Queryable
Sanity::Serializable
Sanity::Document and Sanity::Asset both inherit from Sanity::Resource
Any PORO in your project could become a Sanity::Resource via inheritance