Sha256: b4a9ab73d5ce8b0a498394aeefe020593c81916513e6c44b4a9e6ec8882af67b

Contents?: true

Size: 700 Bytes

Versions: 5

Compression:

Stored size: 700 Bytes

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class Workspaces < BaseClient
      def get(workspace_id = nil)
        request_seam_object(
          :post,
          "/workspaces/get",
          Seam::Workspace,
          "workspace",
          body: {workspace_id: workspace_id}
        )
      end

      def list
        request_seam_object(
          :post,
          "/workspaces/list",
          Seam::Workspace,
          "workspaces",
          body: {}
        )
      end

      def reset_sandbox(workspace_id)
        request_seam(
          :post,
          "/workspaces/reset_sandbox",
          body: {workspace_id: workspace_id}
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
seamapi-2.0.0 lib/seam/clients/workspaces.rb
seamapi-1.17.0 lib/seam/clients/workspaces.rb
seamapi-1.16.1 lib/seam/clients/workspaces.rb
seamapi-1.16.0 lib/seam/clients/workspaces.rb
seamapi-1.15.0 lib/seam/clients/workspaces.rb