Class: Projects::Service::ZohoProject
- Inherits:
-
Object
- Object
- Projects::Service::ZohoProject
- Includes:
- Api
- Defined in:
- lib/projects/service/ZohoProject.rb
Overview
- ZohoProjects is used to provide all API instances for the Zoho Project services.
Instance Method Summary collapse
-
#getBugsAPI ⇒ Object
- Get an instance of bugs API.
-
#getDocumentsAPI ⇒ Object
- Get an instance of documents API.
-
#getEventsAPI ⇒ Object
- Get an instance of events API.
-
#getFoldersAPI ⇒ Object
- Get an instance of folder API.
-
#getForumsAPI ⇒ Object
- Get an instance of forums API.
-
#getMilestonesAPI ⇒ Object
- Get an instance of milestones API.
-
#getPortalsAPI ⇒ Object
- Get an instance of portals API.
-
#getProjectsAPI ⇒ Object
- Get an instance of projects API.
-
#getTasklistsAPI ⇒ Object
- Get an instance of task lists API.
-
#getTasksAPI ⇒ Object
- Get an instance of tasks API.
-
#getTimesheetsAPI ⇒ Object
- Get an instance of time sheets API.
-
#getUsersAPI ⇒ Object
- Get an instance of users API.
-
#initialize(authToken, portalId) ⇒ ZohoProject
constructor
- * portalId
- User's portalId.
Constructor Details
#initialize(authToken, portalId) ⇒ ZohoProject
- * portalId
- User's portalId.
36 37 38 39 |
# File 'lib/projects/service/ZohoProject.rb', line 36 def initialize(authToken,portalId) @authToken = authToken @portalId = portalId end |
Instance Method Details
#getBugsAPI ⇒ Object
- Get an instance of bugs API.
Returns
- BugsAPI object.
157 158 159 160 |
# File 'lib/projects/service/ZohoProject.rb', line 157 def getBugsAPI bugsAPI = BugsAPI.new(authToken, portalId) return bugsAPI end |
#getDocumentsAPI ⇒ Object
- Get an instance of documents API.
Returns
- DocumentsAPI object.
124 125 126 127 |
# File 'lib/projects/service/ZohoProject.rb', line 124 def getDocumentsAPI documentsAPI = DocumentsAPI.new(authToken, portalId) return documentsAPI end |
#getEventsAPI ⇒ Object
- Get an instance of events API.
Returns
- EventsAPI object.
102 103 104 105 |
# File 'lib/projects/service/ZohoProject.rb', line 102 def getEventsAPI eventsAPI = EventsAPI.new(authToken, portalId) return eventsAPI end |
#getFoldersAPI ⇒ Object
- Get an instance of folder API.
Returns
- FoldersAPI object.
113 114 115 116 |
# File 'lib/projects/service/ZohoProject.rb', line 113 def getFoldersAPI foldersAPI = FoldersAPI.new(authToken, portalId) return foldersAPI end |
#getForumsAPI ⇒ Object
- Get an instance of forums API.
Returns
- ForumsAPI object.
135 136 137 138 |
# File 'lib/projects/service/ZohoProject.rb', line 135 def getForumsAPI forumsAPI = ForumsAPI.new(authToken, portalId) return forumsAPI end |
#getMilestonesAPI ⇒ Object
- Get an instance of milestones API.
Returns
- MilestonesAPI object.
69 70 71 72 |
# File 'lib/projects/service/ZohoProject.rb', line 69 def getMilestonesAPI milestonesAPI = MilestonesAPI.new(authToken, portalId) return milestonesAPI end |
#getPortalsAPI ⇒ Object
- Get an instance of portals API.
Returns
- PortalsAPI object.
47 48 49 50 |
# File 'lib/projects/service/ZohoProject.rb', line 47 def getPortalsAPI portalsAPI = PortalAPI.new(authToken) return portalsAPI end |
#getProjectsAPI ⇒ Object
- Get an instance of projects API.
Returns
- ProjectsAPI object.
58 59 60 61 |
# File 'lib/projects/service/ZohoProject.rb', line 58 def getProjectsAPI projectsAPI = ProjectsAPI.new(authToken, portalId) return projectsAPI end |
#getTasklistsAPI ⇒ Object
- Get an instance of task lists API.
Returns
- TasklistsAPI object.
80 81 82 83 |
# File 'lib/projects/service/ZohoProject.rb', line 80 def getTasklistsAPI tasklistsAPI = TasklistsAPI.new(authToken, portalId) return tasklistsAPI end |
#getTasksAPI ⇒ Object
- Get an instance of tasks API.
Returns
- TasksAPI object.
91 92 93 94 |
# File 'lib/projects/service/ZohoProject.rb', line 91 def getTasksAPI tasksAPI = TasksAPI.new(authToken, portalId) return tasksAPI end |
#getTimesheetsAPI ⇒ Object
- Get an instance of time sheets API.
Returns
- TimesheetsAPI object.
168 169 170 171 |
# File 'lib/projects/service/ZohoProject.rb', line 168 def getTimesheetsAPI timesheetsAPI = TimesheetsAPI.new(authToken, portalId) return timesheetsAPI end |