Sha256: 24a24e12e0a597b6bb4008e849ea1bb7816f5d54d134f1f38656c4b748f0912a

Contents?: true

Size: 465 Bytes

Versions: 3

Compression:

Stored size: 465 Bytes

Contents

module Dd2tf
  class Timeboard < Base
    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(UNALLOWED_RESOURCE_TITLE_REGEXP, '')
        renderer = renderer()
        results << renderer.result(binding)
      end

      results
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dd2tf-0.1.2 lib/dd2tf/timeboard.rb
dd2tf-0.1.1 lib/dd2tf/timeboard.rb
dd2tf-0.1.0 lib/dd2tf/timeboard.rb