Class: Twb::Storyboard

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

Constant Summary collapse

@@hasher =
Digest::SHA256.new

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Storyboard

Returns a new instance of Storyboard.



27
28
29
30
31
32
# File 'lib/twb/storyboard.rb', line 27

def initialize node
  # puts "initialize Storyboard"
  @node    = node
  @name    = @node.attr('name')
  loadSheets
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



25
26
27
# File 'lib/twb/storyboard.rb', line 25

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node.



25
26
27
# File 'lib/twb/storyboard.rb', line 25

def node
  @node
end

#worksheetsObject (readonly)

Returns the value of attribute worksheets.



25
26
27
# File 'lib/twb/storyboard.rb', line 25

def worksheets
  @worksheets
end

Instance Method Details

#loadSheetsObject



34
35
36
37
38
39
40
# File 'lib/twb/storyboard.rb', line 34

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