Class: Dd2tf::Timeboard
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dd2tf::Base
Instance Method Details
#output ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/dd2tf/timeboard.rb', line 3 def output results = [] board_ids = @client.get_dashboards[1]["dashes"].map{|board| board["id"]} board_ids.each do |board_id| board = @client.get_dashboard(board_id)[1]["dash"] board_name = board["title"].underscore.gsub(' ', '_').gsub(::Dd2tf::UNALLOWED_RESOURCE_TITLE_REGEXP, '') renderer = renderer() results << renderer.result(binding) end results end |