Class: Twb::Worksheet
Constant Summary collapse
- @@hasher =
Digest::SHA256.new
Instance Attribute Summary collapse
-
#colFields ⇒ Object
readonly
Returns the value of attribute colFields.
-
#datasourceFields ⇒ Object
readonly
Returns the value of attribute datasourceFields.
-
#datasourcenames ⇒ Object
readonly
Returns the value of attribute datasourcenames.
-
#datasources ⇒ Object
readonly
Returns the value of attribute datasources.
-
#encodedFields ⇒ Object
readonly
Returns the value of attribute encodedFields.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#pageFields ⇒ Object
readonly
Returns the value of attribute pageFields.
-
#paneFields ⇒ Object
readonly
Returns the value of attribute paneFields.
-
#panesCount ⇒ Object
readonly
Returns the value of attribute panesCount.
-
#rowFields ⇒ Object
readonly
Returns the value of attribute rowFields.
-
#slicesFields ⇒ Object
readonly
Returns the value of attribute slicesFields.
-
#tooltip ⇒ Object
readonly
Returns the value of attribute tooltip.
-
#visible ⇒ Object
def hidden @hidden ||= resolveHidden end.
Attributes included from TabTool
#alerts, #docDir, #docfiles, #funcdoc, #licensed, #logfilename, #logger, #loglevel, #metrics, #properties, #ttdocdir, #type, #uuid
Instance Method Summary collapse
- #addDSFields(fields, usage) ⇒ Object
- #datasource(name) ⇒ Object
- #id ⇒ Object
-
#initialize(sheetNode, twb) ⇒ Worksheet
constructor
A new instance of Worksheet.
- #workbook ⇒ Object
Methods included from TabTool
#addDocFile, #alert, #closeDocFiles, #config, #docFile, #docFileMaxNameLen, #docfilesdoc, #docfilesdocto_s, #emit, #emitCSV, #finis, #hasConfig, #init, #initCSV, #initDocDir, #initLogger, #license=, #licensed?, #loadConfig
Constructor Details
#initialize(sheetNode, twb) ⇒ Worksheet
Returns a new instance of Worksheet.
36 37 38 39 40 41 42 43 44 |
# File 'lib/twb/worksheet.rb', line 36 def initialize sheetNode, twb @twb = twb @node = sheetNode @name = @node['name'] emit "########################## Worksheet initialize name: #{@name}" loadDataSources loadFields return self end |
Instance Attribute Details
#colFields ⇒ Object (readonly)
Returns the value of attribute colFields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def colFields @colFields end |
#datasourceFields ⇒ Object (readonly)
Returns the value of attribute datasourceFields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def datasourceFields @datasourceFields end |
#datasourcenames ⇒ Object (readonly)
Returns the value of attribute datasourcenames.
29 30 31 |
# File 'lib/twb/worksheet.rb', line 29 def datasourcenames @datasourcenames end |
#datasources ⇒ Object (readonly)
Returns the value of attribute datasources.
29 30 31 |
# File 'lib/twb/worksheet.rb', line 29 def datasources @datasources end |
#encodedFields ⇒ Object (readonly)
Returns the value of attribute encodedFields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def encodedFields @encodedFields end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def fields @fields end |
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
32 33 34 |
# File 'lib/twb/worksheet.rb', line 32 def filters @filters end |
#hidden ⇒ Object
Returns the value of attribute hidden.
34 35 36 |
# File 'lib/twb/worksheet.rb', line 34 def hidden @hidden end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
29 30 31 |
# File 'lib/twb/worksheet.rb', line 29 def name @name end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
29 30 31 |
# File 'lib/twb/worksheet.rb', line 29 def node @node end |
#pageFields ⇒ Object (readonly)
Returns the value of attribute pageFields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def pageFields @pageFields end |
#paneFields ⇒ Object (readonly)
Returns the value of attribute paneFields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def paneFields @paneFields end |
#panesCount ⇒ Object (readonly)
Returns the value of attribute panesCount.
30 31 32 |
# File 'lib/twb/worksheet.rb', line 30 def panesCount @panesCount end |
#rowFields ⇒ Object (readonly)
Returns the value of attribute rowFields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def rowFields @rowFields end |
#slicesFields ⇒ Object (readonly)
Returns the value of attribute slicesFields.
31 32 33 |
# File 'lib/twb/worksheet.rb', line 31 def slicesFields @slicesFields end |
#tooltip ⇒ Object (readonly)
Returns the value of attribute tooltip.
33 34 35 |
# File 'lib/twb/worksheet.rb', line 33 def tooltip @tooltip end |
#visible ⇒ Object
def hidden
@hidden ||= resolveHidden
end
87 88 89 |
# File 'lib/twb/worksheet.rb', line 87 def visible @visible end |
Instance Method Details
#addDSFields(fields, usage) ⇒ Object
91 92 93 94 |
# File 'lib/twb/worksheet.rb', line 91 def addDSFields fields, usage fields.each do end end |
#datasource(name) ⇒ Object
58 59 60 |
# File 'lib/twb/worksheet.rb', line 58 def datasource name @datasources[name] end |
#id ⇒ Object
46 47 48 |
# File 'lib/twb/worksheet.rb', line 46 def id @id ||= @name.hash end |
#workbook ⇒ Object
50 51 52 |
# File 'lib/twb/worksheet.rb', line 50 def workbook @workbook ||= @node.at_xpath('/').root end |