Module: Her::Model

Extended by:
ActiveSupport::Concern
Includes:
ActiveModel::AttributeMethods, ActiveModel::Conversion, ActiveModel::Dirty, ActiveModel::Naming, ActiveModel::Translation, ActiveModel::Validations, Associations, Attributes, Base, HTTP, Introspection, NestedAttributes, ORM, Parse, Paths
Defined in:
lib/her/model.rb,
lib/her/model/orm.rb,
lib/her/model/base.rb,
lib/her/model/http.rb,
lib/her/model/parse.rb,
lib/her/model/paths.rb,
lib/her/model/relation.rb,
lib/her/model/attributes.rb,
lib/her/model/associations.rb,
lib/her/model/introspection.rb,
lib/her/model/nested_attributes.rb,
lib/her/model/deprecated_methods.rb,
lib/her/model/associations/association.rb,
lib/her/model/associations/association_proxy.rb,
lib/her/model/associations/has_one_association.rb,
lib/her/model/associations/has_many_association.rb,
lib/her/model/associations/belongs_to_association.rb

Overview

This module is the main element of Her. After creating a Her::API object, include this module in your models to get a few magic methods defined in them.

Examples:

class User
  include Her::Model
end

@user = User.new(:name => "RĂ©mi")
@user.save

Defined Under Namespace

Modules: Associations, Attributes, Base, HTTP, Introspection, NestedAttributes, ORM, Parse, Paths Classes: Relation

Constant Summary

Constant Summary

Constants included from HTTP

HTTP::METHODS

Method Summary

Methods included from Paths

#request_path

Methods included from Introspection

#inspect

Methods included from Parse

#to_params

Methods included from ORM

#destroy, #destroyed?, #new?, #persisted?, #save, #save!

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 Her::Model::Attributes