Class: Rafflesia::MapModelFitBatchExportData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MapModelFitBatchExportData
- 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
-
#dataset_manifest_object ⇒ Object
Returns the value of attribute dataset_manifest_object.
-
#dataset_manifest_path ⇒ Object
Returns the value of attribute dataset_manifest_path.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#failed_count ⇒ Object
Returns the value of attribute failed_count.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#table_object ⇒ Object
Returns the value of attribute table_object.
-
#table_path ⇒ Object
Returns the value of attribute table_path.
Instance Method Summary collapse
-
#initialize(json) ⇒ MapModelFitBatchExportData
constructor
A new instance of MapModelFitBatchExportData.
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_object ⇒ Object
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_path ⇒ Object
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_name ⇒ Object
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_version ⇒ Object
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_count ⇒ Object
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_dir ⇒ Object
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_count ⇒ Object
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 |
#rows ⇒ Object
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_object ⇒ Object
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_path ⇒ Object
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 |