Class: SuperModel
- Inherits:
-
Object
- Object
- SuperModel
- Extended by:
- Associations, Validations
- Defined in:
- lib/super_model.rb,
lib/super_model/error.rb,
lib/super_model/validator.rb,
lib/super_model/error/type.rb,
lib/super_model/validations.rb,
lib/super_model/associations.rb,
lib/super_model/error/hash_type.rb,
lib/super_model/error/proc_type.rb,
lib/super_model/validations/date.rb,
lib/super_model/validations/time.rb,
lib/super_model/error/integer_type.rb,
lib/super_model/validations/format.rb,
lib/super_model/validations/length.rb,
lib/super_model/associations/has_one.rb,
lib/super_model/validations/presence.rb,
lib/super_model/associations/has_many.rb,
lib/super_model/validations/date_time.rb,
lib/super_model/validations/exclusion.rb,
lib/super_model/validations/inclusion.rb,
lib/super_model/validations/acceptance.rb,
lib/super_model/validations/uniqueness.rb,
lib/super_model/associations/belongs_to.rb,
lib/super_model/error/invalid_plurality.rb,
lib/super_model/validations/confirmation.rb,
lib/super_model/validations/numericality.rb
Overview
TODO: SuperModel DESCRIPTION HERE!
Objects can subclass SuperModel.
Defined Under Namespace
Modules: Associations, Validations Classes: Error, Validator
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SuperModel
constructor
A new instance of SuperModel.
Methods included from Associations
extend_with_associations, extended, foreign_key_for, included, sanitize_resource_name
Methods included from Validations
add_validations, extended, included, register, validators
Constructor Details
#initialize(attributes = {}) ⇒ SuperModel
Returns a new instance of SuperModel.
15 16 17 |
# File 'lib/super_model.rb', line 15 def initialize(attributes={}) attributes.each { |name, value| send("#{name}=", value) } end |