Class: Rafflesia::DatasetBuildStructureTiming
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetBuildStructureTiming
- Defined in:
- lib/rafflesia/datasets/dataset_build_structure_timing.rb
Constant Summary collapse
- HASH_ATTRS =
{ error_code: :error_code, error_message: :error_message, export_elapsed_ms: :export_elapsed_ms, failure_count: :failure_count, import_elapsed_ms: :import_elapsed_ms, row_count: :row_count, source_path: :source_path, status: :status, structure_id: :structure_id, table_artifact_count: :table_artifact_count, table_timings: :table_timings, target_id: :target_id, total_elapsed_ms: :total_elapsed_ms }.freeze
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#export_elapsed_ms ⇒ Object
Returns the value of attribute export_elapsed_ms.
-
#failure_count ⇒ Object
Returns the value of attribute failure_count.
-
#import_elapsed_ms ⇒ Object
Returns the value of attribute import_elapsed_ms.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#source_path ⇒ Object
Returns the value of attribute source_path.
-
#status ⇒ Object
Returns the value of attribute status.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#table_artifact_count ⇒ Object
Returns the value of attribute table_artifact_count.
-
#table_timings ⇒ Object
Returns the value of attribute table_timings.
-
#target_id ⇒ Object
Returns the value of attribute target_id.
-
#total_elapsed_ms ⇒ Object
Returns the value of attribute total_elapsed_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetBuildStructureTiming
constructor
A new instance of DatasetBuildStructureTiming.
Constructor Details
#initialize(json) ⇒ DatasetBuildStructureTiming
Returns a new instance of DatasetBuildStructureTiming.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @error_code = hash[:error_code] @error_message = hash[:error_message] @export_elapsed_ms = hash[:export_elapsed_ms] @failure_count = hash[:failure_count] @import_elapsed_ms = hash[:import_elapsed_ms] @row_count = hash[:row_count] @source_path = hash[:source_path] @status = hash[:status] @structure_id = hash[:structure_id] @table_artifact_count = hash[:table_artifact_count] @table_timings = (hash[:table_timings] || []).map { |item| item ? Rafflesia::DatasetBuildTableStructureTiming.new(item) : nil } @target_id = hash[:target_id] @total_elapsed_ms = hash[:total_elapsed_ms] end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def error_code @error_code end |
#error_message ⇒ Object
Returns the value of attribute error_message.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def @error_message end |
#export_elapsed_ms ⇒ Object
Returns the value of attribute export_elapsed_ms.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def export_elapsed_ms @export_elapsed_ms end |
#failure_count ⇒ Object
Returns the value of attribute failure_count.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def failure_count @failure_count end |
#import_elapsed_ms ⇒ Object
Returns the value of attribute import_elapsed_ms.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def import_elapsed_ms @import_elapsed_ms end |
#row_count ⇒ Object
Returns the value of attribute row_count.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def row_count @row_count end |
#source_path ⇒ Object
Returns the value of attribute source_path.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def source_path @source_path end |
#status ⇒ Object
Returns the value of attribute status.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def status @status end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def structure_id @structure_id end |
#table_artifact_count ⇒ Object
Returns the value of attribute table_artifact_count.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def table_artifact_count @table_artifact_count end |
#table_timings ⇒ Object
Returns the value of attribute table_timings.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def table_timings @table_timings end |
#target_id ⇒ Object
Returns the value of attribute target_id.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def target_id @target_id end |
#total_elapsed_ms ⇒ Object
Returns the value of attribute total_elapsed_ms.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_build_structure_timing.rb', line 24 def total_elapsed_ms @total_elapsed_ms end |