Method: Seatsio::WorkspacesClient#create

Defined in:
lib/seatsio/workspaces.rb

#create(name:, is_test: nil) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/seatsio/workspaces.rb', line 15

def create(name:, is_test: nil)
  body = {}
  body['name'] = name
  body['isTest'] = is_test if is_test

  response = @http_client.post("workspaces", body)
  Workspace.new(response)
end