Class: Rafflesia::MapModelFitBatchExportData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/maps/map_model_fit_batch_export_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  dataset_manifest_object: :dataset_manifest_object,
  dataset_manifest_path: :dataset_manifest_path,
  dataset_name: :dataset_name,
  dataset_version: :dataset_version,
  failed_count: :failed_count,
  output_dir: :output_dir,
  row_count: :row_count,
  rows: :rows,
  table_object: :table_object,
  table_path: :table_path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitBatchExportData

Returns a new instance of MapModelFitBatchExportData.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @dataset_manifest_object = hash[:dataset_manifest_object] ? Rafflesia::ObjectRef.new(hash[:dataset_manifest_object]) : nil
  @dataset_manifest_path = hash[:dataset_manifest_path]
  @dataset_name = hash[:dataset_name]
  @dataset_version = hash[:dataset_version]
  @failed_count = hash[:failed_count]
  @output_dir = hash[:output_dir]
  @row_count = hash[:row_count]
  @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::MapModelFitScoreRow.new(item) : nil }
  @table_object = hash[:table_object] ? Rafflesia::ObjectRef.new(hash[:table_object]) : nil
  @table_path = hash[:table_path]
end

Instance Attribute Details

#dataset_manifest_objectObject

Returns the value of attribute dataset_manifest_object.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def dataset_manifest_object
  @dataset_manifest_object
end

#dataset_manifest_pathObject

Returns the value of attribute dataset_manifest_path.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def dataset_manifest_path
  @dataset_manifest_path
end

#dataset_nameObject

Returns the value of attribute dataset_name.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def dataset_version
  @dataset_version
end

#failed_countObject

Returns the value of attribute failed_count.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def failed_count
  @failed_count
end

#output_dirObject

Returns the value of attribute output_dir.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def output_dir
  @output_dir
end

#row_countObject

Returns the value of attribute row_count.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def row_count
  @row_count
end

#rowsObject

Returns the value of attribute rows.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def rows
  @rows
end

#table_objectObject

Returns the value of attribute table_object.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def table_object
  @table_object
end

#table_pathObject

Returns the value of attribute table_path.



21
22
23
# File 'lib/rafflesia/maps/map_model_fit_batch_export_data.rb', line 21

def table_path
  @table_path
end