class Twb::Storyboard
Attributes
name[R]
node[R]
sheets[R]
Public Class Methods
new(node)
click to toggle source
# File lib/twb/storyboard.rb, line 27 def initialize node # puts "initialize Storyboard" @node = node @name = @node.attr('name') loadSheets end
Public Instance Methods
id()
click to toggle source
# File lib/twb/storyboard.rb, line 34 def id @id ||= @id = @name.hash end
loadSheets()
click to toggle source
# File lib/twb/storyboard.rb, line 38 def loadSheets @sheets = {} sheets = @node.xpath('.//story-point').to_a sheets.each do |node| @sheets[node.attr('captured-sheet')] = node.attr('captured-sheet') end end
worksheets()
click to toggle source
# File lib/twb/storyboard.rb, line 46 def worksheets @sheets.values end