Class: Rafflesia::AnnotationMappingImportRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/annotations/annotation_mapping_import_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  auxiliary_input_object_id: :auxiliary_input_object_id,
  auxiliary_path: :auxiliary_path,
  batch_rows: :batch_rows,
  checkpoint_path: :checkpoint_path,
  database: :database,
  format: :format,
  input_object_id: :input_object_id,
  mapping_family: :mapping_family,
  output_dir: :output_dir,
  path: :path,
  relation: :relation,
  release: :release,
  resume: :resume,
  source_doi: :source_doi,
  source_layout: :source_layout,
  source_record_id: :source_record_id,
  source_url: :source_url,
  timeout_ms: :timeout_ms
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AnnotationMappingImportRequest

Returns a new instance of AnnotationMappingImportRequest.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @auxiliary_input_object_id = hash[:auxiliary_input_object_id]
  @auxiliary_path = hash[:auxiliary_path]
  @batch_rows = hash[:batch_rows]
  @checkpoint_path = hash[:checkpoint_path]
  @database = hash[:database]
  @format = hash[:format]
  @input_object_id = hash[:input_object_id]
  @mapping_family = hash[:mapping_family]
  @output_dir = hash[:output_dir]
  @path = hash[:path]
  @relation = hash[:relation]
  @release = hash[:release]
  @resume = hash[:resume]
  @source_doi = hash[:source_doi]
  @source_layout = hash[:source_layout]
  @source_record_id = hash[:source_record_id]
  @source_url = hash[:source_url]
  @timeout_ms = hash[:timeout_ms]
end

Instance Attribute Details

#auxiliary_input_object_idObject

Returns the value of attribute auxiliary_input_object_id.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def auxiliary_input_object_id
  @auxiliary_input_object_id
end

#auxiliary_pathObject

Returns the value of attribute auxiliary_path.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def auxiliary_path
  @auxiliary_path
end

#batch_rowsObject

Returns the value of attribute batch_rows.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def batch_rows
  @batch_rows
end

#checkpoint_pathObject

Returns the value of attribute checkpoint_path.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def checkpoint_path
  @checkpoint_path
end

#databaseObject

Returns the value of attribute database.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def database
  @database
end

#formatObject

Returns the value of attribute format.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def format
  @format
end

#input_object_idObject

Returns the value of attribute input_object_id.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def input_object_id
  @input_object_id
end

#mapping_familyObject

Returns the value of attribute mapping_family.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def mapping_family
  @mapping_family
end

#output_dirObject

Returns the value of attribute output_dir.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def output_dir
  @output_dir
end

#pathObject

Returns the value of attribute path.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def path
  @path
end

#relationObject

Returns the value of attribute relation.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def relation
  @relation
end

#releaseObject

Returns the value of attribute release.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def release
  @release
end

#resumeObject

Returns the value of attribute resume.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def resume
  @resume
end

#source_doiObject

Returns the value of attribute source_doi.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def source_doi
  @source_doi
end

#source_layoutObject

Returns the value of attribute source_layout.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def source_layout
  @source_layout
end

#source_record_idObject

Returns the value of attribute source_record_id.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def source_record_id
  @source_record_id
end

#source_urlObject

Returns the value of attribute source_url.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def source_url
  @source_url
end

#timeout_msObject

Returns the value of attribute timeout_ms.



29
30
31
# File 'lib/rafflesia/annotations/annotation_mapping_import_request.rb', line 29

def timeout_ms
  @timeout_ms
end