class Statusboard::TableWidget

Class which represents table widgets for Status Board. The widget is configured and filled with data using a DSL which is passed to the constructor.

Public Class Methods

new(&block) click to toggle source
# File lib/statusboard/widgets/table.rb, line 10
def initialize(&block)
        @table_description = DSL::TableDescription.new(&block)
end

Public Instance Methods

render() click to toggle source
# File lib/statusboard/widgets/table.rb, line 14
def render
        table_data = @table_description.construct

        render_template("table.erb", table_data)
end