Module: Restorm::Model
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::AttributeMethods, ActiveModel::Conversion, ActiveModel::Dirty, ActiveModel::Validations, ActiveModel::Validations::Callbacks, Associations, Attributes, Base, HTTP, Introspection, NestedAttributes, ORM, Parse, Paths
- Defined in:
- lib/restorm/model.rb,
lib/restorm/model/orm.rb,
lib/restorm/model/base.rb,
lib/restorm/model/http.rb,
lib/restorm/model/parse.rb,
lib/restorm/model/paths.rb,
lib/restorm/model/relation.rb,
lib/restorm/model/attributes.rb,
lib/restorm/model/associations.rb,
lib/restorm/model/introspection.rb,
lib/restorm/model/nested_attributes.rb,
lib/restorm/model/deprecated_methods.rb,
lib/restorm/model/associations/association.rb,
lib/restorm/model/associations/association_proxy.rb,
lib/restorm/model/associations/has_one_association.rb,
lib/restorm/model/associations/has_many_association.rb,
lib/restorm/model/associations/belongs_to_association.rb
Overview
This module is the main element of Restorm. After creating a Restorm::API object, include this module in your models to get a few magic methods defined in them.
Defined Under Namespace
Modules: Associations, Attributes, Base, HTTP, Introspection, NestedAttributes, ORM, Parse, Paths Classes: Relation
Constant Summary
Constants included from HTTP
Method Summary
Methods included from Paths
Methods included from Introspection
Methods included from Parse
Methods included from ORM
#decrement, #decrement!, #destroy, #destroyed?, #increment, #increment!, #new?, #persisted?, #reload, #save, #save!, #toggle, #toggle!, #update_attributes
Methods included from Attributes
#assign_attributes, #attributes, #id, #initialize
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Restorm::Model::Attributes