class ConfluenceHelper::Confluence::DeliverablePage
Public Class Methods
new(labels:, body:)
click to toggle source
# File lib/confluence_helper.rb, line 77 def initialize(labels:, body:) @node = Nokogiri::HTML(body) end
Public Instance Methods
deliverables()
click to toggle source
# File lib/confluence_helper.rb, line 85 def deliverables tables.select{|t| is_deliverables_table? t } .map{|table| table.data }.flatten end
is_deliverables_table?(table)
click to toggle source
Name DHFR Status Location Comments
# File lib/confluence_helper.rb, line 90 def is_deliverables_table?(table) table.has_columns? columns: %w{Name DHFR Status Location Comments} end
tables()
click to toggle source
# File lib/confluence_helper.rb, line 81 def tables @tables ||= @node.xpath('//table').map{|t| HtmlTable.new(t) } end