Class: Flatter::Mapper
- Inherits:
-
Object
- Object
- Flatter::Mapper
- Extended by:
- ActiveSupport::Autoload
- Includes:
- ActiveModel::Validations, AttributeMethods, Collection, Mapping, ModelName, Mounting, Options, Persistence, Target, Traits, Validation, WriteWithIndifferentAccess
- Defined in:
- lib/flatter/mapper.rb
Defined Under Namespace
Modules: AttributeMethods, Collection, Mapping, ModelName, Mounting, Options, Persistence, Target, Traits, Validation, WriteWithIndifferentAccess Classes: Factory
Constant Summary
Constants included from Target
Constants included from Collection
Instance Attribute Summary
Attributes included from Target
Attributes included from Mounting
Attributes included from Options
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Persistence
#apply, #errors, #run_save!, #run_validations!, #save, #valid?, #with_callbacks
Methods included from AttributeMethods
#method_missing, #mounting, #respond_to_missing?
Methods included from Target
#default_target_class_name, #initialize, #set_target, #set_target!, #target, #target_class, #target_class_name, #target_initialized?
Methods included from Traits
#extend_with, #full_name, #initialize, #method_missing, #mounter!, #respond_to_missing?, #set_traits, #shared_methods, #trait!, #trait?, #trait_names, #traits
Methods included from Mounting
#full_name, #mapping_names, #mappings, #mounting_names, #mountings, #read, #root, #write
Methods included from Mapping
#[], #[]=, #mapping, #mapping_names, #mappings, #read, #writable_mapping_names, #write
Methods included from Options
Methods included from ModelName
Methods included from Collection
#collection, #collection?, #mapping_names, #mounting_names, #pluralize!, #pluralized?, prepended, #read, #write
Methods included from WriteWithIndifferentAccess
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Flatter::Mapper::AttributeMethods
Class Method Details
.inherited(subclass) ⇒ Object
31 32 33 34 |
# File 'lib/flatter/mapper.rb', line 31 def self.inherited(subclass) subclass.mappings = mappings.dup subclass.mountings = mountings.dup end |
Instance Method Details
#inspect ⇒ Object
36 37 38 |
# File 'lib/flatter/mapper.rb', line 36 def inspect to_s end |
#to_ary ⇒ Object
40 41 42 |
# File 'lib/flatter/mapper.rb', line 40 def to_ary nil end |