Class: Twb::WorksheetDataSource

Inherits:
Object
  • Object
show all
Defined in:
lib/twb/worksheet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#captionObject (readonly)

Returns the value of attribute caption.



22
23
24
# File 'lib/twb/worksheet.rb', line 22

def caption
  @caption
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/twb/worksheet.rb', line 22

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node.



22
23
24
# File 'lib/twb/worksheet.rb', line 22

def node
  @node
end

#uinameObject (readonly)

Returns the value of attribute uiname.



22
23
24
# File 'lib/twb/worksheet.rb', line 22

def uiname
  @uiname
end