Class: StructuredDataToSql::Json::ShreddedRow

Inherits:
Struct
  • Object
show all
Defined in:
lib/structured_data_to_sql/json/shredder.rb

Overview

One shredded record: table_rel is the table's path relative to the root table ("" for the root itself), columns maps final column names to raw values, children holds nested ShreddedRows for child tables.

Instance Attribute Summary collapse

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



15
16
17
# File 'lib/structured_data_to_sql/json/shredder.rb', line 15

def children
  @children
end

#columnsObject

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns



15
16
17
# File 'lib/structured_data_to_sql/json/shredder.rb', line 15

def columns
  @columns
end

#ordinalObject

Returns the value of attribute ordinal

Returns:

  • (Object)

    the current value of ordinal



15
16
17
# File 'lib/structured_data_to_sql/json/shredder.rb', line 15

def ordinal
  @ordinal
end

#parent_natural_idObject

Returns the value of attribute parent_natural_id

Returns:

  • (Object)

    the current value of parent_natural_id



15
16
17
# File 'lib/structured_data_to_sql/json/shredder.rb', line 15

def parent_natural_id
  @parent_natural_id
end

#table_relObject

Returns the value of attribute table_rel

Returns:

  • (Object)

    the current value of table_rel



15
16
17
# File 'lib/structured_data_to_sql/json/shredder.rb', line 15

def table_rel
  @table_rel
end