Class: Rafflesia::TableExportData

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

Instance Method Summary collapse

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

#databaseObject

Returns the value of attribute database.



24
25
26
# File 'lib/rafflesia/artifacts/table_export_data.rb', line 24

def database
  @database
end

#objectObject

Returns the value of attribute object.



24
25
26
# File 'lib/rafflesia/artifacts/table_export_data.rb', line 24

def object
  @object
end

#object_refsObject

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_scopeObject

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

#relationObject

Returns the value of attribute relation.



24
25
26
# File 'lib/rafflesia/artifacts/table_export_data.rb', line 24

def relation
  @relation
end

#releaseObject

Returns the value of attribute release.



24
25
26
# File 'lib/rafflesia/artifacts/table_export_data.rb', line 24

def release
  @release
end

#row_countObject

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_columnObject

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_hashObject

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_refObject

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_versionObject

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_idObject

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_idObject

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