class Statusboard::StatusboardServer

Simple Sinatra-based server whose task it is to serve widgets to the app(s) using http. Widgets can be defined directly using the DSL or by passing already initialized Widget-objects. The widgets are identified using a unique name for each defined widget.

Attributes

server_description[R]

Public Class Methods

new(*args, &block) click to toggle source

Initializes a new instance of the server using the configuration specified via the DSL in the block. The server will be initialized without any widgets if no block is specified.

Calls superclass method
# File lib/statusboard/server.rb, line 16
def initialize(*args, &block)

        super(*args, &nil)   # Dont pass the block to super as it would result in errors because the dsl methods aren't available if not instance_eval'd

        @server_description = DSL::ServerDescription.new &block
end