Class: Flatter::Mapper
- Inherits:
-
Object
- Object
- Flatter::Mapper
- Extended by:
- ActiveSupport::Autoload
- Includes:
- ActiveModel::Validations, AttributeMethods, Mapping, ModelName, Mounting, Options, Persistence, Target, Traits
- Defined in:
- lib/flatter/mapper.rb
Defined Under Namespace
Modules: AttributeMethods, Mapping, ModelName, Mounting, Options, Persistence, Target, Traits Classes: Factory
Constant Summary
Constants included from Target
Instance Attribute Summary
Attributes included from Mounting
Attributes included from Target
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, #respond_to_missing?
Methods included from Traits
#extend_with, #full_name, #initialize, #method_missing, #respond_to_missing?, #set_target, #set_traits, #shared_methods, #trait!, #trait?, #trait_names, #traits
Methods included from Mounting
#full_name, #mappings, #mounting, #mountings, #read, #write
Methods included from Mapping
#[], #[]=, #local_mappings, #mapping, #mapping_names, #mappings, #read, #writable_mapping_names, #write
Methods included from Target
Methods included from Options
Methods included from ModelName
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
25 26 27 28 |
# File 'lib/flatter/mapper.rb', line 25 def self.inherited(subclass) subclass.mappings = mappings.dup subclass.mountings = mountings.dup end |
Instance Method Details
#inspect ⇒ Object
30 31 32 |
# File 'lib/flatter/mapper.rb', line 30 def inspect to_s end |
#to_ary ⇒ Object
34 35 36 |
# File 'lib/flatter/mapper.rb', line 34 def to_ary nil end |