lib/tracker_api/endpoints/workspace.rb in tracker_api-1.3.0 vs lib/tracker_api/endpoints/workspace.rb in tracker_api-1.4.0
- old
+ new
@@ -10,8 +10,14 @@
def get(id, params={})
data = client.get("/my/workspaces/#{id}", params: params).body
Resources::Workspace.new({ client: client }.merge(data))
end
+
+ def create(params={})
+ data = client.post("/my/workspaces", params: params).body
+
+ Resources::Workspace.new({ client: client }.merge(data))
+ end
end
end
end