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