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
#create(connect_partner_name:, name:, is_sandbox: nil, webview_logo_shape: nil, webview_primary_button_color: nil) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/seam/clients/workspaces.rb', line 6
def create(connect_partner_name:, name:, is_sandbox: nil, webview_logo_shape: nil, webview_primary_button_color: nil)
request_seam_object(
:post,
"/workspaces/create",
Seam::Workspace,
"workspace",
body: {connect_partner_name: connect_partner_name, name: name, is_sandbox: is_sandbox, webview_logo_shape: webview_logo_shape, webview_primary_button_color: webview_primary_button_color}.compact
)
end
|
#get ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/seam/clients/workspaces.rb', line 16
def get
request_seam_object(
:post,
"/workspaces/get",
Seam::Workspace,
"workspace",
body: {}.compact
)
end
|
#list ⇒ Object
26
27
28
29
30
31
32
33
34
|
# File 'lib/seam/clients/workspaces.rb', line 26
def list
request_seam_object(
:post,
"/workspaces/list",
Seam::Workspace,
"workspaces",
body: {}.compact
)
end
|
#reset_sandbox(wait_for_action_attempt: nil) ⇒ Object
36
37
38
39
40
41
42
43
44
45
46
47
|
# File 'lib/seam/clients/workspaces.rb', line 36
def reset_sandbox(wait_for_action_attempt: nil)
action_attempt = request_seam_object(
:post,
"/workspaces/reset_sandbox",
Seam::ActionAttempt,
"action_attempt",
body: {}.compact
)
action_attempt.decide_and_wait(wait_for_action_attempt)
action_attempt
end
|