Class: Rescpos::Table
- Inherits:
-
Object
- Object
- Rescpos::Table
- Defined in:
- lib/rescpos/table.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
-
#positions ⇒ Object
readonly
Returns the value of attribute positions.
Instance Method Summary collapse
- #config(positions) ⇒ Object
- #head(headers) ⇒ Object
-
#initialize(data) ⇒ Table
constructor
A new instance of Table.
- #td(keys) ⇒ Object
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/rescpos/table.rb', line 3 def data @data end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
3 4 5 |
# File 'lib/rescpos/table.rb', line 3 def headers @headers end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
3 4 5 |
# File 'lib/rescpos/table.rb', line 3 def keys @keys end |
#positions ⇒ Object (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 |