Class: Twb::Storyboard
- Inherits:
-
Object
- Object
- Twb::Storyboard
- Defined in:
- lib/twb/storyboard.rb
Constant Summary collapse
- @@hasher =
Digest::SHA256.new
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#worksheets ⇒ Object
readonly
Returns the value of attribute worksheets.
Instance Method Summary collapse
-
#initialize(node) ⇒ Storyboard
constructor
A new instance of Storyboard.
- #loadSheets ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'lib/twb/storyboard.rb', line 25 def name @name end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
25 26 27 |
# File 'lib/twb/storyboard.rb', line 25 def node @node end |
#worksheets ⇒ Object (readonly)
Returns the value of attribute worksheets.
25 26 27 |
# File 'lib/twb/storyboard.rb', line 25 def worksheets @worksheets end |
Instance Method Details
#loadSheets ⇒ Object
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 |