Module: Hook::Model
- Includes:
- InstanceMethods
- Defined in:
- lib/hook-client/model.rb
Overview
Provides ActiveRecord/like methods for querying Collections
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Methods included from InstanceMethods
#attributes, #attributes=, #initialize, #inspect, #method_missing, #save
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hook::Model::InstanceMethods
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/hook-client/model.rb', line 8 def self.included(base) base.class_eval do extend ClassMethods extend ActiveModel::Naming extend ActiveModel::Translation extend ActiveModel::Callbacks include ActiveModel::Validations include ActiveModel::Conversion include ActiveModel::Dirty include ActiveModel::AttributeMethods include ActiveModel::Serializers::JSON include ActiveModel::Serializers::Xml field :_id end end |