Class: Rescpos::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/rescpos/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Table

Returns a new instance of Table.



4
5
6
# File 'lib/rescpos/table.rb', line 4

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/rescpos/table.rb', line 3

def data
  @data
end

#headersObject (readonly)

Returns the value of attribute headers.



3
4
5
# File 'lib/rescpos/table.rb', line 3

def headers
  @headers
end

#keysObject (readonly)

Returns the value of attribute keys.



3
4
5
# File 'lib/rescpos/table.rb', line 3

def keys
  @keys
end

#positionsObject (readonly)

Returns the value of attribute positions.



3
4
5
# File 'lib/rescpos/table.rb', line 3

def positions
  @positions
end

Instance Method Details

#config(positions) ⇒ Object



11
12
13
# File 'lib/rescpos/table.rb', line 11

def config(positions)
  @positions = positions
end

#head(headers) ⇒ Object



7
8
9
# File 'lib/rescpos/table.rb', line 7

def head(headers)
  @headers = headers
end

#td(keys) ⇒ Object



15
16
17
# File 'lib/rescpos/table.rb', line 15

def td(keys)
  @keys = keys
end