Class: Rafflesia::DatasetTableArtifact
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetTableArtifact
- Defined in:
- lib/rafflesia/datasets/dataset_table_artifact.rb
Constant Summary collapse
- HASH_ATTRS =
{ is_compacted: :is_compacted, object: :object, partition_id: :partition_id, partition_scope: :partition_scope, relation: :relation, row_count: :row_count, row_scope_column: :row_scope_column, schema_hash: :schema_hash, schema_version: :schema_version, source_artifact_count: :source_artifact_count, structure_count: :structure_count, structure_id: :structure_id, tool_run_id: :tool_run_id }.freeze
Instance Attribute Summary collapse
-
#is_compacted ⇒ Object
Returns the value of attribute is_compacted.
-
#object ⇒ Object
Returns the value of attribute object.
-
#partition_id ⇒ Object
Returns the value of attribute partition_id.
-
#partition_scope ⇒ Object
Returns the value of attribute partition_scope.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#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.
-
#source_artifact_count ⇒ Object
Returns the value of attribute source_artifact_count.
-
#structure_count ⇒ Object
Returns the value of attribute structure_count.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#tool_run_id ⇒ Object
Returns the value of attribute tool_run_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetTableArtifact
constructor
A new instance of DatasetTableArtifact.
Constructor Details
#initialize(json) ⇒ DatasetTableArtifact
Returns a new instance of DatasetTableArtifact.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @is_compacted = hash[:is_compacted] @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @partition_id = hash[:partition_id] @partition_scope = hash[:partition_scope] @relation = hash[:relation] @row_count = hash[:row_count] @row_scope_column = hash[:row_scope_column] @schema_hash = hash[:schema_hash] @schema_version = hash[:schema_version] @source_artifact_count = hash[:source_artifact_count] @structure_count = hash[:structure_count] @structure_id = hash[:structure_id] @tool_run_id = hash[:tool_run_id] end |
Instance Attribute Details
#is_compacted ⇒ Object
Returns the value of attribute is_compacted.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def is_compacted @is_compacted end |
#object ⇒ Object
Returns the value of attribute object.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def object @object end |
#partition_id ⇒ Object
Returns the value of attribute partition_id.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def partition_id @partition_id end |
#partition_scope ⇒ Object
Returns the value of attribute partition_scope.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def partition_scope @partition_scope end |
#relation ⇒ Object
Returns the value of attribute relation.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def relation @relation end |
#row_count ⇒ Object
Returns the value of attribute row_count.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def row_count @row_count end |
#row_scope_column ⇒ Object
Returns the value of attribute row_scope_column.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def row_scope_column @row_scope_column end |
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def schema_hash @schema_hash end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def schema_version @schema_version end |
#source_artifact_count ⇒ Object
Returns the value of attribute source_artifact_count.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def source_artifact_count @source_artifact_count end |
#structure_count ⇒ Object
Returns the value of attribute structure_count.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def structure_count @structure_count end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def structure_id @structure_id end |
#tool_run_id ⇒ Object
Returns the value of attribute tool_run_id.
24 25 26 |
# File 'lib/rafflesia/datasets/dataset_table_artifact.rb', line 24 def tool_run_id @tool_run_id end |