Class: Teamlab::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/teamlab/Modules/Project.rb

Instance Method Summary collapse

Constructor Details

#initializeProject

Returns a new instance of Project.



3
4
5
# File 'lib/teamlab/Modules/Project.rb', line 3

def initialize
  @request = Teamlab::Request
end

Instance Method Details

#add_importing_url_to_queue(company_url, username, password, import_closed, disable_notifications, import_users_as_collaborators, projects = []) ⇒ Object



11
12
13
14
# File 'lib/teamlab/Modules/Project.rb', line 11

def add_importing_url_to_queue(company_url, username, password, import_closed, disable_notifications, import_users_as_collaborators, projects = [])
  @request.post(%w(import), url: company_url, userName: username, password: password, importClosed: import_closed,
  disableNotifications: disable_notifications, importUsersAsCollaborators: import_users_as_collaborators, projects: projects)
end


229
230
231
# File 'lib/teamlab/Modules/Project.rb', line 229

def add_link(task_id, options = {})
  @request.post(['task', task_id.to_s, 'link'], options)
end

#add_message(project_id, title, content, participants, options = []) ⇒ Object



36
37
38
# File 'lib/teamlab/Modules/Project.rb', line 36

def add_message(project_id, title, content, participants, options = [])
  @request.get([project_id.to_s, 'message'], { title: title, content: content, participants: participants }.merge(options))
end

#add_message_comment(message_id, content, options = {}) ⇒ Object



96
97
98
# File 'lib/teamlab/Modules/Project.rb', line 96

def add_message_comment(message_id, content, options = {})
  @request.post(['task', message_id.to_s, 'comment'], { content: content }.merge(options))
end

#add_milestone(project_id, title, deadline, is_key, is_notify, description, responsible, notify_responsible) ⇒ Object



184
185
186
187
# File 'lib/teamlab/Modules/Project.rb', line 184

def add_milestone(project_id, title, deadline, is_key, is_notify, description, responsible, notify_responsible)
  @request.post([project_id.to_s, 'milestone'], title: title, deadline: deadline, isKey: is_key, isNotify: is_notify,
                          description: description, responsible: responsible, notifyResponsible: notify_responsible)
end

#add_project_contact(project_id, contact_id) ⇒ Object



349
350
351
# File 'lib/teamlab/Modules/Project.rb', line 349

def add_project_contact(project_id, contact_id)
  @request.post([project_id.to_s, 'contact'], contactId: contact_id)
end

#add_task(project_id, title, options = {}) ⇒ Object



313
314
315
# File 'lib/teamlab/Modules/Project.rb', line 313

def add_task(project_id, title, options = {})
  @request.post([project_id.to_s, 'task'], { title: title }.merge(options))
end

#add_task_comment(task_id, content, options = {}) ⇒ Object



92
93
94
# File 'lib/teamlab/Modules/Project.rb', line 92

def add_task_comment(task_id, content, options = {})
  @request.post(['task', task_id.to_s, 'comment'], { content: content }.merge(options))
end

#add_task_from_discussion(project_id, message_id) ⇒ Object



317
318
319
# File 'lib/teamlab/Modules/Project.rb', line 317

def add_task_from_discussion(project_id, message_id)
  @request.post([project_id.to_s, 'task', message_id.to_s])
end

#add_task_time(task_id, note, date, person_id, hours, project_id) ⇒ Object



421
422
423
# File 'lib/teamlab/Modules/Project.rb', line 421

def add_task_time(task_id, note, date, person_id, hours, project_id)
  @request.post(['task', task_id.to_s, 'time'], { date: date, note: note, personId: person_id, hours: hours, projectId: project_id })
end

#add_to_team(project_id, user_id) ⇒ Object



253
254
255
# File 'lib/teamlab/Modules/Project.rb', line 253

def add_to_team(project_id, user_id)
  @request.post([project_id.to_s, 'team'], userid: user_id)
end

#check_subscription_to_discussion(message_id) ⇒ Object



32
33
34
# File 'lib/teamlab/Modules/Project.rb', line 32

def check_subscription_to_discussion(message_id)
  @request.get(['message', message_id.to_s, 'subscribe'])
end

#check_subscription_to_task_action(task_id) ⇒ Object



297
298
299
# File 'lib/teamlab/Modules/Project.rb', line 297

def check_subscription_to_task_action(task_id)
  @request.get(['task', task_id.to_s, 'subscribe'])
end

#create_project(title, description, responsible_id, tags, private, options = {}) ⇒ Object



176
177
178
# File 'lib/teamlab/Modules/Project.rb', line 176

def create_project(title, description, responsible_id, tags, private, options = {})
  @request.post('', { title: title, description: description, responsibleid: responsible_id, tags: tags, private: private}.merge(options))
end

#create_report_template(name, options) ⇒ Object



108
109
110
# File 'lib/teamlab/Modules/Project.rb', line 108

def create_report_template(name, options)
  @request.post(['report'], { name: name }.merge(options))
end

#create_subtask(task_id, responsible_id, title) ⇒ Object



309
310
311
# File 'lib/teamlab/Modules/Project.rb', line 309

def create_subtask(task_id, responsible_id, title)
  @request.post(['task', task_id.to_s], { responsible: responsible_id, title: title })
end

#create_template(title, description) ⇒ Object



180
181
182
# File 'lib/teamlab/Modules/Project.rb', line 180

def create_template(title, description)
  @request.post(['template'], { title: title, description: description})
end

#delete_comment(comment_id) ⇒ Object



104
105
106
# File 'lib/teamlab/Modules/Project.rb', line 104

def delete_comment(comment_id)
  @request.delete(['comment', comment_id.to_s])
end

#delete_message(message_id) ⇒ Object



48
49
50
# File 'lib/teamlab/Modules/Project.rb', line 48

def delete_message(message_id)
  @request.delete(['message', message_id.to_s])
end

#delete_milestone(id) ⇒ Object



405
406
407
# File 'lib/teamlab/Modules/Project.rb', line 405

def delete_milestone(id)
  @request.delete(['milestone', id.to_s])
end

#delete_project(id) ⇒ Object



205
206
207
# File 'lib/teamlab/Modules/Project.rb', line 205

def delete_project(id)
  @request.delete([id.to_s])
end

#delete_project_contact(project_id, contact_id) ⇒ Object



353
354
355
# File 'lib/teamlab/Modules/Project.rb', line 353

def delete_project_contact(project_id, contact_id)
  @request.delete([project_id.to_s, 'contact'], contactId: contact_id)
end

#delete_report_template(report_id) ⇒ Object



116
117
118
# File 'lib/teamlab/Modules/Project.rb', line 116

def delete_report_template(report_id)
  @request.delete(['report', report_id.to_s])
end

#delete_subtask(task_id, subtask_id) ⇒ Object



341
342
343
# File 'lib/teamlab/Modules/Project.rb', line 341

def delete_subtask(task_id, subtask_id)
  @request.delete(['task', task_id.to_s, subtask_id.to_s])
end

#delete_task(id) ⇒ Object



213
214
215
# File 'lib/teamlab/Modules/Project.rb', line 213

def delete_task(id)
  @request.delete(['task', id.to_s])
end

#delete_template(id) ⇒ Object



209
210
211
# File 'lib/teamlab/Modules/Project.rb', line 209

def delete_template(id)
  @request.delete(['template', id.to_s])
end

#delete_time_spents(time_ids) ⇒ Object



433
434
435
# File 'lib/teamlab/Modules/Project.rb', line 433

def delete_time_spents(time_ids)
  @request.delete(%w(time times remove), timeIds: time_ids)
end

#detach_file_from_message(message_id, file_id) ⇒ Object



76
77
78
# File 'lib/teamlab/Modules/Project.rb', line 76

def detach_file_from_message(message_id, file_id)
  @request.delete(['task', message_id.to_s, 'files'], fileid: file_id)
end

#detach_file_from_task(task_id, file_id) ⇒ Object



72
73
74
# File 'lib/teamlab/Modules/Project.rb', line 72

def detach_file_from_task(task_id, file_id)
  @request.delete(['task', task_id.to_s, 'files'], fileid: file_id)
end

#filter_projects(options) ⇒ Object



132
133
134
# File 'lib/teamlab/Modules/Project.rb', line 132

def filter_projects(options)
  @request.get(['filter'], options)
end

#follow_unfollow_project(project_id) ⇒ Object



201
202
203
# File 'lib/teamlab/Modules/Project.rb', line 201

def follow_unfollow_project(project_id)
  @request.put([project_id.to_s, 'follow'])
end

#followed_projectsObject



136
137
138
# File 'lib/teamlab/Modules/Project.rb', line 136

def followed_projects
  @request.get(['@follow'])
end

#get_all_tasts(project_id) ⇒ Object



293
294
295
# File 'lib/teamlab/Modules/Project.rb', line 293

def get_all_tasts(project_id)
  @request.get([project_id.to_s, 'task', '@all'])
end

#get_comment(comment_id) ⇒ Object



80
81
82
# File 'lib/teamlab/Modules/Project.rb', line 80

def get_comment(comment_id)
  @request.get(['comment', comment_id.to_s])
end

#get_entity_files(entity_id, entity_type) ⇒ Object



56
57
58
# File 'lib/teamlab/Modules/Project.rb', line 56

def get_entity_files(entity_id, entity_type)
  @request.get([entity_id.to_s, 'entityfiles'], entityType: entity_type)
end

#get_import_statusObject



7
8
9
# File 'lib/teamlab/Modules/Project.rb', line 7

def get_import_status
  @request.get(['import'])
end

#get_latest_discussion_messagesObject



20
21
22
# File 'lib/teamlab/Modules/Project.rb', line 20

def get_latest_discussion_messages
  @request.get(['message'])
end

#get_message_by_filter(options = {}) ⇒ Object



24
25
26
# File 'lib/teamlab/Modules/Project.rb', line 24

def get_message_by_filter(options = {})
  @request.get(%w(message filter), options)
end

#get_message_comments(message_id) ⇒ Object



88
89
90
# File 'lib/teamlab/Modules/Project.rb', line 88

def get_message_comments(message_id)
  @request.get(['message', message_id.to_s, 'comment'])
end

#get_message_files(message_id) ⇒ Object



60
61
62
# File 'lib/teamlab/Modules/Project.rb', line 60

def get_message_files(message_id)
  @request.get(['message', message_id.to_s, 'files'])
end

#get_messages(project_id) ⇒ Object



28
29
30
# File 'lib/teamlab/Modules/Project.rb', line 28

def get_messages(project_id)
  @request.get([project_id.to_s, 'message'])
end

#get_milestone(id) ⇒ Object



377
378
379
# File 'lib/teamlab/Modules/Project.rb', line 377

def get_milestone(id)
  @request.get(['milestone', id.to_s])
end

#get_milestone_tasks(id) ⇒ Object



385
386
387
# File 'lib/teamlab/Modules/Project.rb', line 385

def get_milestone_tasks(id)
  @request.get(['milestone', id.to_s, 'task'])
end

#get_milestones(project_id) ⇒ Object



160
161
162
# File 'lib/teamlab/Modules/Project.rb', line 160

def get_milestones(project_id)
  @request.get([project_id.to_s, 'milestone'])
end

#get_milestones_by_filter(options = {}) ⇒ Object



381
382
383
# File 'lib/teamlab/Modules/Project.rb', line 381

def get_milestones_by_filter(options = {})
  @request.get(%w(milestone filter), options)
end

#get_milestones_by_full_date(year, month, day) ⇒ Object



393
394
395
# File 'lib/teamlab/Modules/Project.rb', line 393

def get_milestones_by_full_date(year, month, day)
  @request.get(['milestone', year.to_s, month.to_s, day.to_s])
end

#get_milestones_by_month(year, month) ⇒ Object



389
390
391
# File 'lib/teamlab/Modules/Project.rb', line 389

def get_milestones_by_month(year, month)
  @request.get(['milestone', year.to_s, month.to_s])
end

#get_milestones_with_status(project_id, status) ⇒ Object



172
173
174
# File 'lib/teamlab/Modules/Project.rb', line 172

def get_milestones_with_status(project_id, status)
  @request.get([project_id.to_s, 'milestone', status.to_s])
end

#get_my_tasksObject



269
270
271
# File 'lib/teamlab/Modules/Project.rb', line 269

def get_my_tasks
  @request.get(%w(task @self))
end

#get_my_tasks_by_status(status) ⇒ Object



285
286
287
# File 'lib/teamlab/Modules/Project.rb', line 285

def get_my_tasks_by_status(status)
  @request.get(['task', '@self', status.to_s])
end

#get_my_tasks_with_status(project_id, status) ⇒ Object



305
306
307
# File 'lib/teamlab/Modules/Project.rb', line 305

def get_my_tasks_with_status(project_id, status)
  @request.get([project_id.to_s, 'task', '@self', status.to_s])
end

#get_overdue_milestonesObject



373
374
375
# File 'lib/teamlab/Modules/Project.rb', line 373

def get_overdue_milestones
  @request.get(%w(milestone late))
end

#get_participated_projectsObject



128
129
130
# File 'lib/teamlab/Modules/Project.rb', line 128

def get_participated_projects
  @request.get(['@self'])
end

#get_project(id) ⇒ Object



124
125
126
# File 'lib/teamlab/Modules/Project.rb', line 124

def get_project(id)
  @request.get([id.to_s])
end

#get_project_by_status(status) ⇒ Object



140
141
142
# File 'lib/teamlab/Modules/Project.rb', line 140

def get_project_by_status(status)
  @request.get([status.to_s])
end

#get_project_by_tag(tag) ⇒ Object



361
362
363
# File 'lib/teamlab/Modules/Project.rb', line 361

def get_project_by_tag(tag)
  @request.get(['tag', tag.to_s])
end

#get_project_files(project_id) ⇒ Object



152
153
154
# File 'lib/teamlab/Modules/Project.rb', line 152

def get_project_files(project_id)
  @request.get([project_id.to_s, 'files'])
end

#get_project_tagsObject



357
358
359
# File 'lib/teamlab/Modules/Project.rb', line 357

def get_project_tags
  @request.get(%w(tag))
end

#get_project_team(project_id) ⇒ Object



245
246
247
# File 'lib/teamlab/Modules/Project.rb', line 245

def get_project_team(project_id)
  @request.get([project_id.to_s, 'team'])
end

#get_projectsObject



120
121
122
# File 'lib/teamlab/Modules/Project.rb', line 120

def get_projects
  @request.get
end

#get_projects_for_contact(contact_id) ⇒ Object



345
346
347
# File 'lib/teamlab/Modules/Project.rb', line 345

def get_projects_for_contact(contact_id)
  @request.get(['contact', contact_id.to_s])
end

#get_projects_for_import(url, username, password) ⇒ Object



16
17
18
# File 'lib/teamlab/Modules/Project.rb', line 16

def get_projects_for_import(url, username, password)
  @request.post(%w(import projects), url: url, userName: username, password: password)
end

#get_projects_teams(project_ids) ⇒ Object



249
250
251
# File 'lib/teamlab/Modules/Project.rb', line 249

def get_projects_teams(project_ids)
  @request.post(%w(team), ids: project_ids)
end

#get_simple_task_by_filter(project_id, options = {}) ⇒ Object



225
226
227
# File 'lib/teamlab/Modules/Project.rb', line 225

def get_simple_task_by_filter(project_id, options = {})
  @request.get(%w(task filter simple), { projectid: project_id }.merge(options))
end

#get_spent_time(project_id) ⇒ Object



148
149
150
# File 'lib/teamlab/Modules/Project.rb', line 148

def get_spent_time(project_id)
  @request.get([project_id.to_s, 'time'])
end

#get_tags_by_name(tag_name) ⇒ Object



365
366
367
# File 'lib/teamlab/Modules/Project.rb', line 365

def get_tags_by_name(tag_name)
  @request.get(%w(tag search), tagName: tag_name)
end

#get_task(id) ⇒ Object



277
278
279
# File 'lib/teamlab/Modules/Project.rb', line 277

def get_task(id)
  @request.get(['task', id.to_s])
end

#get_task_by_filter(options = {}) ⇒ Object



273
274
275
# File 'lib/teamlab/Modules/Project.rb', line 273

def get_task_by_filter(options = {})
  @request.get(%w(task filter), options)
end

#get_task_comments(task_id) ⇒ Object



84
85
86
# File 'lib/teamlab/Modules/Project.rb', line 84

def get_task_comments(task_id)
  @request.get(['task', task_id.to_s, 'comment'])
end

#get_task_files(task_id) ⇒ Object



52
53
54
# File 'lib/teamlab/Modules/Project.rb', line 52

def get_task_files(task_id)
  @request.get(['task', task_id.to_s, 'files'])
end

#get_task_order(id) ⇒ Object



221
222
223
# File 'lib/teamlab/Modules/Project.rb', line 221

def get_task_order(id)
  @request.get([id.to_s, 'order'])
end

#get_tasks(project_id) ⇒ Object



281
282
283
# File 'lib/teamlab/Modules/Project.rb', line 281

def get_tasks(project_id)
  @request.get([project_id.to_s, 'task'])
end

#get_tasks_by_ids(task_ids) ⇒ Object



217
218
219
# File 'lib/teamlab/Modules/Project.rb', line 217

def get_tasks_by_ids(task_ids)
  @request.get(['task'], taskid: task_ids)
end

#get_tasks_with_status(project_id, status) ⇒ Object



301
302
303
# File 'lib/teamlab/Modules/Project.rb', line 301

def get_tasks_with_status(project_id, status)
  @request.get([project_id.to_s, 'task', status.to_s])
end

#get_template(template_id) ⇒ Object



156
157
158
# File 'lib/teamlab/Modules/Project.rb', line 156

def get_template(template_id)
  @request.get([template_id.to_s])
end

#get_templatesObject



144
145
146
# File 'lib/teamlab/Modules/Project.rb', line 144

def get_templates
  @request.get(['template'])
end

#get_time_spent(task_id) ⇒ Object



417
418
419
# File 'lib/teamlab/Modules/Project.rb', line 417

def get_time_spent(task_id)
  @request.get(['task', task_id.to_s, 'time'])
end

#get_time_spent_by_filter(options = {}) ⇒ Object



409
410
411
# File 'lib/teamlab/Modules/Project.rb', line 409

def get_time_spent_by_filter(options = {})
  @request.get(%w(time filter), options)
end

#get_total_time_spent_by_filter(options = {}) ⇒ Object



413
414
415
# File 'lib/teamlab/Modules/Project.rb', line 413

def get_total_time_spent_by_filter(options = {})
  @request.get(%w(time filter total), options)
end

#get_upcoming_milestonesObject



369
370
371
# File 'lib/teamlab/Modules/Project.rb', line 369

def get_upcoming_milestones
  @request.get(%w(milestone))
end

#notify_task_responsible(task_id) ⇒ Object



289
290
291
# File 'lib/teamlab/Modules/Project.rb', line 289

def notify_task_responsible(task_id)
  @request.get(['task', task_id.to_s, 'notify'])
end

#remove_from_team(project_id, user_id) ⇒ Object



265
266
267
# File 'lib/teamlab/Modules/Project.rb', line 265

def remove_from_team(project_id, user_id)
  @request.delete([project_id.to_s, 'team'], userId: user_id)
end

#search_all_projects(query) ⇒ Object



164
165
166
# File 'lib/teamlab/Modules/Project.rb', line 164

def search_all_projects(query)
  @request.get(['@search', query.to_s])
end

#search_project(project_id, query) ⇒ Object



168
169
170
# File 'lib/teamlab/Modules/Project.rb', line 168

def search_project(project_id, query)
  @request.get([project_id.to_s, '@search', query.to_s])
end

#set_task_order(id, order) ⇒ Object



237
238
239
# File 'lib/teamlab/Modules/Project.rb', line 237

def set_task_order(id, order)
  @request.put([id.to_s, 'order'], order: order)
end

#set_team_security(project_id, user_id, security, options = {}) ⇒ Object



261
262
263
# File 'lib/teamlab/Modules/Project.rb', line 261

def set_team_security(project_id, user_id, security, options = {})
  @request.put([project_id.to_s, 'team', 'security'], { userId: user_id, security: security }.merge(options))
end

#subscribe_to_message(message_id) ⇒ Object



44
45
46
# File 'lib/teamlab/Modules/Project.rb', line 44

def subscribe_to_message(message_id)
  @request.put(['message', message_id.to_s, 'subscribe'])
end

#subscribe_to_task_action(task_id) ⇒ Object



329
330
331
# File 'lib/teamlab/Modules/Project.rb', line 329

def subscribe_to_task_action(task_id)
  @request.put(['task', task_id.to_s, 'subscribe'])
end

#update_comment(comment_id, content) ⇒ Object



100
101
102
# File 'lib/teamlab/Modules/Project.rb', line 100

def update_comment(comment_id, content)
  @request.put(['comment', comment_id.to_s], content: content)
end

#update_message(message_id, project_id, title, content, options = {}) ⇒ Object



40
41
42
# File 'lib/teamlab/Modules/Project.rb', line 40

def update_message(message_id, project_id, title, content, options = {})
  @request.put(['message', message_id.to_s], { projectid: project_id, title: title, content: content }.merge(options))
end

#update_milestone(id, title, deadline, options = {}) ⇒ Object



397
398
399
# File 'lib/teamlab/Modules/Project.rb', line 397

def update_milestone(id, title, deadline, options = {})
  @request.put(['milestone', id.to_s], { title: title, deadline: deadline }.merge(options))
end

#update_milestone_status(id, status) ⇒ Object



401
402
403
# File 'lib/teamlab/Modules/Project.rb', line 401

def update_milestone_status(id, status)
  @request.put(['milestone', id.to_s, 'status'], status: status)
end

#update_project(id, title, responsible_id, options = {}) ⇒ Object



233
234
235
# File 'lib/teamlab/Modules/Project.rb', line 233

def update_project(id, title, responsible_id, options = {})
  @request.put([id.to_s], { title: title, responsibleId: responsible_id }.merge(options))
end

#update_project_status(id, status) ⇒ Object



193
194
195
# File 'lib/teamlab/Modules/Project.rb', line 193

def update_project_status(id, status)
  @request.put([id.to_s, 'status'], status: status)
end

#update_project_tags(id, tags) ⇒ Object



189
190
191
# File 'lib/teamlab/Modules/Project.rb', line 189

def update_project_tags(id, tags)
  @request.put([id.to_s, 'tag'], tags: tags)
end

#update_project_task(task_id, title, options = {}) ⇒ Object



241
242
243
# File 'lib/teamlab/Modules/Project.rb', line 241

def update_project_task(task_id, title, options = {})
  @request.put(['task', task_id.to_s], {title: title.to_s}.merge(options))
end

#update_project_team(project_id, participants_ids, options = {}) ⇒ Object



257
258
259
# File 'lib/teamlab/Modules/Project.rb', line 257

def update_project_team(project_id, participants_ids, options = {})
  @request.put([project_id.to_s, 'team'], { participants: participants_ids }.merge(options))
end

#update_report_template(report_id, name, options) ⇒ Object



112
113
114
# File 'lib/teamlab/Modules/Project.rb', line 112

def update_report_template(report_id, name, options)
  @request.put(['report', report_id.to_s], { name: name }.merge(options))
end

#update_subtask(task_id, subtask_id, responsible_id, title) ⇒ Object



333
334
335
# File 'lib/teamlab/Modules/Project.rb', line 333

def update_subtask(task_id, subtask_id, responsible_id, title)
  @request.post(['task', task_id.to_s, subtask_id.to_s], responsibleId: responsible_id, title: title)
end

#update_subtask_status(task_id, subtask_id, status) ⇒ Object



337
338
339
# File 'lib/teamlab/Modules/Project.rb', line 337

def update_subtask_status(task_id, subtask_id, status)
  @request.put(['task', task_id.to_s, subtask_id.to_s, 'status'], status: status)
end

#update_task_milestone(task_id, milestone_id) ⇒ Object



325
326
327
# File 'lib/teamlab/Modules/Project.rb', line 325

def update_task_milestone(task_id, milestone_id)
  @request.put(['task', task_id.to_s, 'milestone'], milestoneId: milestone_id)
end

#update_task_status(task_id, status) ⇒ Object



321
322
323
# File 'lib/teamlab/Modules/Project.rb', line 321

def update_task_status(task_id, status)
  @request.post(['task', task_id.to_s, 'status'], status: status)
end

#update_task_time(time_id, note, date, person_id, hours) ⇒ Object



425
426
427
# File 'lib/teamlab/Modules/Project.rb', line 425

def update_task_time(time_id, note, date, person_id, hours)
  @request.put(['time', time_id.to_s], note: note, date: date, personId: person_id, hours: hours)
end

#update_template(id, title, description) ⇒ Object



197
198
199
# File 'lib/teamlab/Modules/Project.rb', line 197

def update_template(id, title, description)
  @request.put(['template', id.to_s], title: title, description: description)
end

#update_time_status_of_payment(time_ids, status) ⇒ Object



429
430
431
# File 'lib/teamlab/Modules/Project.rb', line 429

def update_time_status_of_payment(time_ids, status)
  @request.put(%w(time times status), timeids: time_ids, status: status)
end

#upload_file_to_message(message_id, *files) ⇒ Object



68
69
70
# File 'lib/teamlab/Modules/Project.rb', line 68

def upload_file_to_message(message_id, *files)
  @request.post(['message', message_id.to_s, 'files'], files: files.flatten)
end

#upload_file_to_task(task_id, *files) ⇒ Object



64
65
66
# File 'lib/teamlab/Modules/Project.rb', line 64

def upload_file_to_task(task_id, *files)
  @request.post(['task', task_id.to_s, 'files'], files: files.flatten)
end