```ruby
module Toggl
  class V8

    # name    : (string, required)
    # premium : If it's a pro workspace or not.
    #           Shows if someone is paying for the workspace or not (boolean, not required)
    # at      : timestamp that is sent in the response, indicates the time item was last updated

    def workspaces
      get "workspaces"
    end

    def clients(workspace=nil)
      if workspace.nil?
        get "clients"
      else
        get "workspaces/#{workspace}/clients"
      end
    end

    def projects(workspace, params={})
      active = params.has_key?(:active) ? "?active=#{params[:active]}" : ""
      get "workspaces/#{workspace}/projects#{active}"
    end

    def users(workspace)
      get "workspaces/#{workspace}/users"
    end

    def tasks(workspace, params={})
      active = params.has_key?(:active) ? "?active=#{params[:active]}" : ""
      get "workspaces/#{workspace}/tasks#{active}"
    end
  end
end
```

Add dashboard() and leave_workspace(). Update params to workspace_id.
user
```ruby
module Toggl
  class V8

    # name    : (string, required)
    # premium : If it's a pro workspace or not.
    #           Shows if someone is paying for the workspace or not (boolean, not required)
    # at      : timestamp that is sent in the response, indicates the time item was last updated

    def workspaces
      get "workspaces"
    end

    def clients(workspace_id=nil)
      if workspace_id.nil?
        get "clients"
      else
        get "workspaces/#{workspace_id}/clients"
      end
    end

    def projects(workspace_id, params={})
      active = params.has_key?(:active) ? "?active=#{params[:active]}" : ""
      get "workspaces/#{workspace_id}/projects#{active}"
    end

    def users(workspace_id)
      get "workspaces/#{workspace_id}/users"
    end

    def tasks(workspace_id, params={})
      active = params.has_key?(:active) ? "?active=#{params[:active]}" : ""
      get "workspaces/#{workspace_id}/tasks#{active}"
    end

    def dashboard(workspace_id)
      get "dashboard/#{workspace_id}"
    end

    def leave_workspace(workspace_id)
      delete "workspaces/#{workspace_id}/leave"
    end
  end
end
```
assistant