Class: Twb::WorksheetDataSource
- Inherits:
-
Object
- Object
- Twb::WorksheetDataSource
- Defined in:
- lib/twb/worksheet.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
readonly
Returns the value of attribute caption.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#uiname ⇒ Object
readonly
Returns the value of attribute uiname.
Instance Method Summary collapse
-
#initialize(node) ⇒ WorksheetDataSource
constructor
A new instance of WorksheetDataSource.
Constructor Details
#initialize(node) ⇒ WorksheetDataSource
Returns a new instance of WorksheetDataSource.
23 24 25 26 27 28 |
# File 'lib/twb/worksheet.rb', line 23 def initialize node @node = node @caption = node.attr('caption') @name = node.attr('name') @uiname = if @caption.nil? || @caption == '' then @name else @caption end end |
Instance Attribute Details
#caption ⇒ Object (readonly)
Returns the value of attribute caption.
22 23 24 |
# File 'lib/twb/worksheet.rb', line 22 def caption @caption end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/twb/worksheet.rb', line 22 def name @name end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
22 23 24 |
# File 'lib/twb/worksheet.rb', line 22 def node @node end |
#uiname ⇒ Object (readonly)
Returns the value of attribute uiname.
22 23 24 |
# File 'lib/twb/worksheet.rb', line 22 def uiname @uiname end |