
module Dash
  class Builder
    attr_reader :board, :map, :name
    def initialize board, map, name
      @board = board
      @map = map
      @name = name
    end

    def from address
      map.route(address, name)
    end

    def to
      board.app(name) do |app|
        yield app
      end
    end
  end
end

