class TrackerApi::Endpoints::Workspace
Attributes
client[RW]
Public Class Methods
new(client)
click to toggle source
# File lib/tracker_api/endpoints/workspace.rb, line 6 def initialize(client) @client = client end
Public Instance Methods
create(params={})
click to toggle source
# File lib/tracker_api/endpoints/workspace.rb, line 16 def create(params={}) data = client.post("/my/workspaces", params: params).body Resources::Workspace.new({ client: client }.merge(data)) end
get(id, params={})
click to toggle source
# File lib/tracker_api/endpoints/workspace.rb, line 10 def get(id, params={}) data = client.get("/my/workspaces/#{id}", params: params).body Resources::Workspace.new({ client: client }.merge(data)) end