Method: DataSource#initialize
- Defined in:
- lib/tableauworkbook.rb
#initialize(dataSourceNode) ⇒ DataSource
Returns a new instance of DataSource.
38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/tableauworkbook.rb', line 38 def initialize dataSourceNode @node = dataSourceNode @name = @node.xpath('./@name').text @caption = @node.xpath('./@caption').text @uiname = if @caption.nil? || @caption == '' then @name else @caption end # puts "DS: n:#{@name}" # puts " caption:#{@caption}" # puts " c.len :#{@caption.length}" # puts " c.nil?:#{@caption.nil?}" # puts " uiname:#{@uiname}" # puts " " processConnection end |