Class: Rafflesia::DatasetTableCheck
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetTableCheck
- Defined in:
- lib/rafflesia/datasets/dataset_table_check.rb
Constant Summary collapse
- HASH_ATTRS =
{ actual_row_count: :actual_row_count, exists: :exists, expected_row_count: :expected_row_count, object_id: :object_id, partition_scope: :partition_scope, path: :path, row_count_checked: :row_count_checked, row_scope_column: :row_scope_column, schema_hash: :schema_hash, schema_version: :schema_version, sha256: :sha_256, sha256_matches: :sha_256_matches, size_bytes: :size_bytes, size_bytes_matches: :size_bytes_matches, structure_id: :structure_id, table_name: :table_name, tool_run_id: :tool_run_id }.freeze
Instance Attribute Summary collapse
-
#actual_row_count ⇒ Object
Returns the value of attribute actual_row_count.
-
#exists ⇒ Object
Returns the value of attribute exists.
-
#expected_row_count ⇒ Object
Returns the value of attribute expected_row_count.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#partition_scope ⇒ Object
Returns the value of attribute partition_scope.
-
#path ⇒ Object
Returns the value of attribute path.
-
#row_count_checked ⇒ Object
Returns the value of attribute row_count_checked.
-
#row_scope_column ⇒ Object
Returns the value of attribute row_scope_column.
-
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#sha_256_matches ⇒ Object
Returns the value of attribute sha_256_matches.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#size_bytes_matches ⇒ Object
Returns the value of attribute size_bytes_matches.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
-
#tool_run_id ⇒ Object
Returns the value of attribute tool_run_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetTableCheck
constructor
A new instance of DatasetTableCheck.
Constructor Details
#initialize(json) ⇒ DatasetTableCheck
Returns a new instance of DatasetTableCheck.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 47 def initialize(json) super() hash = self.class.normalize(json) @actual_row_count = hash[:actual_row_count] @exists = hash[:exists] @expected_row_count = hash[:expected_row_count] @object_id = hash[:object_id] @partition_scope = hash[:partition_scope] @path = hash[:path] @row_count_checked = hash[:row_count_checked] @row_scope_column = hash[:row_scope_column] @schema_hash = hash[:schema_hash] @schema_version = hash[:schema_version] @sha_256 = hash[:sha256] @sha_256_matches = hash[:sha256_matches] @size_bytes = hash[:size_bytes] @size_bytes_matches = hash[:size_bytes_matches] @structure_id = hash[:structure_id] @table_name = hash[:table_name] @tool_run_id = hash[:tool_run_id] end |
Instance Attribute Details
#actual_row_count ⇒ Object
Returns the value of attribute actual_row_count.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def actual_row_count @actual_row_count end |
#exists ⇒ Object
Returns the value of attribute exists.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def exists @exists end |
#expected_row_count ⇒ Object
Returns the value of attribute expected_row_count.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def expected_row_count @expected_row_count end |
#object_id ⇒ Object
Returns the value of attribute object_id.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def object_id @object_id end |
#partition_scope ⇒ Object
Returns the value of attribute partition_scope.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def partition_scope @partition_scope end |
#path ⇒ Object
Returns the value of attribute path.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def path @path end |
#row_count_checked ⇒ Object
Returns the value of attribute row_count_checked.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def row_count_checked @row_count_checked end |
#row_scope_column ⇒ Object
Returns the value of attribute row_scope_column.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def row_scope_column @row_scope_column end |
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def schema_hash @schema_hash end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def schema_version @schema_version end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def sha_256 @sha_256 end |
#sha_256_matches ⇒ Object
Returns the value of attribute sha_256_matches.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def sha_256_matches @sha_256_matches end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def size_bytes @size_bytes end |
#size_bytes_matches ⇒ Object
Returns the value of attribute size_bytes_matches.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def size_bytes_matches @size_bytes_matches end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def structure_id @structure_id end |
#table_name ⇒ Object
Returns the value of attribute table_name.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def table_name @table_name end |
#tool_run_id ⇒ Object
Returns the value of attribute tool_run_id.
28 29 30 |
# File 'lib/rafflesia/datasets/dataset_table_check.rb', line 28 def tool_run_id @tool_run_id end |