Class: HSqlTable
- Inherits:
-
HSpreadFieldTable
- Object
- Array
- HFieldTable
- HSpreadFieldTable
- HSqlTable
- Defined in:
- lib/hsqlmanager/hsqltable.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#sortField ⇒ Object
Returns the value of attribute sortField.
-
#tableName ⇒ Object
Returns the value of attribute tableName.
Attributes inherited from HSpreadFieldTable
Attributes inherited from HFieldTable
Instance Method Summary collapse
-
#initialize(tableName = nil, filter = "true", sortField = "id") ⇒ HSqlTable
constructor
A new instance of HSqlTable.
Methods inherited from HSpreadFieldTable
#addSummary, #dataByFieldName, #decorate, #evalDataByFieldName, #noname, #showSummary, test, test2
Methods inherited from HFieldTable
#[], #addFieldName, #columnCount, #columnCountByKey, #copyConstructor, #data, #dataByFieldName, #deleteRow, #each, #eachWithFieldName, #fields, #insertRow, #match, #method_missing, #row, #rowCount, #rowWithFieldName, #setCaption, #setData, #setDataByFieldName, #setIntoRecordByFieldName, #show, #showData, #showHeader, #showTotalizers, #sortBy, #sumByFieldName, test, test2, #valueByFieldName, #valueByType
Methods inherited from Array
#<, #addIfNotPresent, #column, #herbertsort, #herbertsort!, #hjoin, #hpartition, #show, #sortByList, #sortByPositionList, #swap, test, #to_js_format
Constructor Details
#initialize(tableName = nil, filter = "true", sortField = "id") ⇒ HSqlTable
Returns a new instance of HSqlTable.
8 9 10 11 12 13 |
# File 'lib/hsqlmanager/hsqltable.rb', line 8 def initialize(tableName = nil, filter = "true", sortField = "id") super() @tableName = tableName @filter = filter @sortField = sortField end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HFieldTable
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
6 7 8 |
# File 'lib/hsqlmanager/hsqltable.rb', line 6 def filter @filter end |
#sortField ⇒ Object
Returns the value of attribute sortField.
6 7 8 |
# File 'lib/hsqlmanager/hsqltable.rb', line 6 def sortField @sortField end |
#tableName ⇒ Object
Returns the value of attribute tableName.
6 7 8 |
# File 'lib/hsqlmanager/hsqltable.rb', line 6 def tableName @tableName end |