Module: Mock::RootModelConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/mock/root_model_concern.rb
Overview
This concern is only meant to be mixed into models that are top-level collections. That is, those models who have no parent model resource.
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#export_errors ⇒ Object
Instance Variables.
-
#import_errors ⇒ Object
Returns the value of attribute import_errors.
-
#import_notices ⇒ Object
Returns the value of attribute import_notices.
-
#skip_import ⇒ Object
Returns the value of attribute skip_import.
Instance Method Summary collapse
-
#interchange_type_name ⇒ Object
Returns the name to be used for data interchange.
-
#skip_import? ⇒ Boolean
———- Instance Methods ———-.
Instance Attribute Details
#export_errors ⇒ Object
Instance Variables
12 13 14 |
# File 'app/models/concerns/mock/root_model_concern.rb', line 12 def export_errors @export_errors end |
#import_errors ⇒ Object
Returns the value of attribute import_errors.
13 14 15 |
# File 'app/models/concerns/mock/root_model_concern.rb', line 13 def import_errors @import_errors end |
#import_notices ⇒ Object
Returns the value of attribute import_notices.
14 15 16 |
# File 'app/models/concerns/mock/root_model_concern.rb', line 14 def import_notices @import_notices end |
#skip_import ⇒ Object
Returns the value of attribute skip_import.
15 16 17 |
# File 'app/models/concerns/mock/root_model_concern.rb', line 15 def skip_import @skip_import end |
Instance Method Details
#interchange_type_name ⇒ Object
Returns the name to be used for data interchange. Normally, one just returns the name of the class.
27 28 29 |
# File 'app/models/concerns/mock/root_model_concern.rb', line 27 def interchange_type_name self.class.to_s end |
#skip_import? ⇒ Boolean
———- Instance Methods ———-
20 21 22 |
# File 'app/models/concerns/mock/root_model_concern.rb', line 20 def skip_import? skip_import end |