lib/tracker_api/client.rb in tracker_api-1.3.0 vs lib/tracker_api/client.rb in tracker_api-1.4.0
- old
+ new
@@ -126,9 +126,17 @@
# @return [TrackerApi::Resources::Project]
def project(id, params={})
Endpoints::Project.new(self).get(id, params)
end
+ # Create a new workspace.
+ #
+ # @param [Hash] params attributes to create the workspace with
+ # @return [TrackerApi::Resources::Workspace] newly created Workspace
+ def create_workspace(params)
+ Endpoints::Workspace.new(self).create(params)
+ end
+
# Get workspace
#
# @param [Hash] params
# @return [TrackerApi::Resources::Workspace]
def workspace(id, params={})