lib/tracker_api/client.rb in tracker_api-1.1.1 vs lib/tracker_api/client.rb in tracker_api-1.2.1

- old
+ new

@@ -126,9 +126,26 @@ # @return [TrackerApi::Resources::Project] def project(id, params={}) Endpoints::Project.new(self).get(id, params) end + # Get workspace + # + # @param [Hash] params + # @return [TrackerApi::Resources::Workspace] + def workspace(id, params={}) + Endpoints::Workspace.new(self).get(id, params) + end + + # Get workspaces + # + # @param [Hash] params + # @return [Array[TrackerApi::Resources::Workspace]] + def workspaces(params={}) + Endpoints::Workspaces.new(self).get(params) + end + + # Get information about the authenticated user # # @return [TrackerApi::Resources::Me] def me Endpoints::Me.new(self).get