Class: TableColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/read_table/table_column.rb

Overview

class used to represent a Table Column. Used internally to map SAP’s returned working area (WA) into class instances

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Returns Field Description returned by the SAP dictionary.

Returns:

  • (String)

    Field Description returned by the SAP dictionary



13
14
15
# File 'lib/read_table/table_column.rb', line 13

def description
  @description
end

#field_nameString

Returns Name of the table field.

Returns:

  • (String)

    Name of the table field



5
6
7
# File 'lib/read_table/table_column.rb', line 5

def field_name
  @field_name
end

#lengthInteger

Returns Length of the field returned in the Working Area (WA).

Returns:

  • (Integer)

    Length of the field returned in the Working Area (WA)



9
10
11
# File 'lib/read_table/table_column.rb', line 9

def length
  @length
end

#offsetInteger

Returns Number of characters to offset when looking for the field in the Working Area (WA).

Returns:

  • (Integer)

    Number of characters to offset when looking for the field in the Working Area (WA)



7
8
9
# File 'lib/read_table/table_column.rb', line 7

def offset
  @offset
end

#typeString

Returns Data Type (ex: Character, Decimal, Number).

Returns:

  • (String)

    Data Type (ex: Character, Decimal, Number)



11
12
13
# File 'lib/read_table/table_column.rb', line 11

def type
  @type
end