Class: Rafflesia::DatasetTableCheck

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_countObject

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

#existsObject

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_countObject

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_idObject

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_scopeObject

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

#pathObject

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_checkedObject

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_columnObject

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_hashObject

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_versionObject

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_256Object

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_matchesObject

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_bytesObject

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_matchesObject

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_idObject

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_nameObject

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_idObject

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