Class: BatchLoad::Import::Descriptors

Inherits:
BatchLoad::Import show all
Defined in:
lib/batch_load/import/descriptors.rb

Overview

TODO: Originally transliterated from Import::CollectionObjects: Remove this to-do after successful operation.

Defined Under Namespace

Classes: ModifyGeneDescriptorInterpreter, QualitativeInterpreter

Constant Summary collapse

SAVE_ORDER =
[:descriptor]

Instance Attribute Summary collapse

Attributes inherited from BatchLoad::Import

#create_attempted, #csv, #errors, #file, #file_errors, #import_level, #processed, #processed_rows, #project, #project_id, #successful_rows, #total_data_lines, #total_lines, #user, #user_header_map, #user_id

Instance Method Summary collapse

Methods inherited from BatchLoad::Import

#all_objects, #build, #create, #create_attempted?, #import_level_ok?, #line_strict_level_ok?, #processed?, #ready_to_create?, #save_order, #sorted_processed_rows, #strict_level_ok?, #total_records_created, #user_map, #valid?, #valid_objects, #warn_level_ok?

Constructor Details

#initialize(**args) ⇒ Descriptors

Returns a new instance of Descriptors.

Parameters:

  • args (Hash)


12
13
14
15
# File 'lib/batch_load/import/descriptors.rb', line 12

def initialize(**args)
  @descriptors = {}
  super(**args)
end

Instance Attribute Details

#descriptorsObject

Returns the value of attribute descriptors.



9
10
11
# File 'lib/batch_load/import/descriptors.rb', line 9

def descriptors
  @descriptors
end