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

Instance Method Summary collapse

Instance Attribute Details

#export_errorsObject

Instance Variables



12
13
14
# File 'app/models/concerns/mock/root_model_concern.rb', line 12

def export_errors
  @export_errors
end

#import_errorsObject

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_noticesObject

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_importObject

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_nameObject

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 ———-

Returns:

  • (Boolean)


20
21
22
# File 'app/models/concerns/mock/root_model_concern.rb', line 20

def skip_import?
  skip_import
end