Class: Teamwork::Client
- Inherits:
-
Object
- Object
- Teamwork::Client
- Includes:
- Account, Activity, Comment, Company, File, Message, Notebook, People, Project, Task, Timer
- Defined in:
- lib/teamwork/client.rb,
lib/teamwork/client/file.rb,
lib/teamwork/client/task.rb,
lib/teamwork/client/timer.rb,
lib/teamwork/client/people.rb,
lib/teamwork/client/account.rb,
lib/teamwork/client/comment.rb,
lib/teamwork/client/company.rb,
lib/teamwork/client/message.rb,
lib/teamwork/client/project.rb,
lib/teamwork/client/activity.rb,
lib/teamwork/client/notebook.rb
Defined Under Namespace
Modules: Account, Activity, Comment, Company, File, Message, Notebook, People, Project, Task, Timer
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Timer
#delete_time_entry, #time_entries, #time_entry, #update_time_entry
Methods included from Task
Methods included from Project
#create_project, #delete_project, #project, #project_activity, #project_companies, #project_files, #project_messages, #project_people, #project_timers, #projects, #toggle_project_star, #update_project
Methods included from People
Methods included from Notebook
Methods included from Message
Methods included from File
Methods included from Company
Methods included from Comment
#delete_comment, #get_comment, #get_comments, #post_comment, #update_comment
Methods included from Activity
Methods included from Account
Class Method Details
.authenticated? ⇒ Boolean
26 27 28 |
# File 'lib/teamwork/client.rb', line 26 def self.authenticated? !Teamwork.subdomain.nil? || !Teamwork.api_key.nil? end |
Instance Method Details
#api_endpoint ⇒ Object
22 23 24 |
# File 'lib/teamwork/client.rb', line 22 def api_endpoint @api_endpoint ||= "http://#{Teamwork.subdomain}.teamworkpm.net/" end |
#resources ⇒ Object
30 31 32 |
# File 'lib/teamwork/client.rb', line 30 def resources %w{links milestones files notebooks tasks} end |