Class: Flatter::Mapper

Inherits:
Object
  • Object
show all
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

Target::NoTargetError

Instance Attribute Summary

Attributes included from Mounting

#mounter, #name

Attributes included from Target

#target

Attributes included from Options

#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

#initialize, #set_target

Methods included from Options

#initialize

Methods included from ModelName

#model_name

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

#inspectObject



30
31
32
# File 'lib/flatter/mapper.rb', line 30

def inspect
  to_s
end

#to_aryObject



34
35
36
# File 'lib/flatter/mapper.rb', line 34

def to_ary
  nil
end