Class: LiquidPlanner::Resources::Workspace

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

Instance Method Summary collapse

Methods inherited from LiquidPlannerResource

#get_raw, #load

Dynamic Method Handling

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

Instance Method Details

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



45
46
47
48
49
# File 'lib/liquidplanner/resources/workspace.rb', line 45

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

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



25
26
27
# File 'lib/liquidplanner/resources/workspace.rb', line 25

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

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



41
42
43
# File 'lib/liquidplanner/resources/workspace.rb', line 41

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

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



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

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

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



37
38
39
# File 'lib/liquidplanner/resources/workspace.rb', line 37

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

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



21
22
23
# File 'lib/liquidplanner/resources/workspace.rb', line 21

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

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



33
34
35
# File 'lib/liquidplanner/resources/workspace.rb', line 33

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

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



29
30
31
# File 'lib/liquidplanner/resources/workspace.rb', line 29

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

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



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

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

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



51
52
53
54
55
# File 'lib/liquidplanner/resources/workspace.rb', line 51

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

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



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

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