Class: Fopost::Resources::Workspaces
- Defined in:
- lib/fopost/resources/workspaces.rb
Overview
client.workspaces — the workspaces the key can reach.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Fopost::Resources::Base
Instance Method Details
#get(workspace_id) ⇒ Object
11 12 13 |
# File 'lib/fopost/resources/workspaces.rb', line 11 def get(workspace_id) Workspace.new(unwrap(http.get("/workspaces/#{workspace_id}"))) end |
#list ⇒ Object
7 8 9 |
# File 'lib/fopost/resources/workspaces.rb', line 7 def list parse_list(Workspace, unwrap(http.get('/workspaces'))) end |