Class: Seam::Clients::Workspaces
Instance Attribute Summary
Attributes inherited from BaseClient
#client
Instance Method Summary
collapse
Methods inherited from BaseClient
#initialize, #request_seam, #request_seam_object
Instance Method Details
#get(workspace_id = nil) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/seam/clients/workspaces.rb', line 6
def get(workspace_id = nil)
request_seam_object(
:post,
"/workspaces/get",
Seam::Workspace,
"workspace",
body: {workspace_id: workspace_id}
)
end
|
#list ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/seam/clients/workspaces.rb', line 16
def list
request_seam_object(
:post,
"/workspaces/list",
Seam::Workspace,
"workspaces",
body: {}
)
end
|
#reset_sandbox(workspace_id) ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/seam/clients/workspaces.rb', line 26
def reset_sandbox(workspace_id)
request_seam(
:post,
"/workspaces/reset_sandbox",
body: {workspace_id: workspace_id}
)
end
|