Class: LiquidPlanner::Resources::Workspace

Inherits:
LiquidPlannerResource show all
Defined in:
lib/liquidplanner/resources/workspace.rb

Instance Method Summary collapse

Methods inherited from LiquidPlannerResource

#load

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class LiquidPlanner::LiquidPlannerResource

Instance Method Details

#folders(scope = :all, options = {}) ⇒ Object



13
14
15
# File 'lib/liquidplanner/resources/workspace.rb', line 13

def folders( scope=:all, options={} )
  Folder.find( scope, :params => { :workspace_id => self.id, :flat => true }.merge(options) )
end

#members(scope = :all, options = {}) ⇒ Object



5
6
7
# File 'lib/liquidplanner/resources/workspace.rb', line 5

def members( scope=:all, options={} )
  Member.find( scope, :params => { :workspace_id => self.id }.merge(options) )
end

#tasklists(scope = :all, options = {}) ⇒ Object



17
18
19
# File 'lib/liquidplanner/resources/workspace.rb', line 17

def tasklists( scope=:all, options={} )
  Tasklist.find( scope, :params => { :workspace_id => self.id, :flat => true }.merge(options) )
end

#tasks(scope = :all, options = {}) ⇒ Object



9
10
11
# File 'lib/liquidplanner/resources/workspace.rb', line 9

def tasks( scope=:all, options={} )
  Task.find( scope, :params => { :workspace_id => self.id }.merge(options) )
end